Deleting the lifecycle environment fails with error 'Cannot delete record because of dependent hosts'

Solution Verified - Updated -

Issue

  • Deleting lifecycle environment fails with error 'Cannot delete record because of dependent hosts'
 Completed 200 OK in 47ms (Views: 24.8ms | ActiveRecord: 7.8ms)
 Processing by Katello::Api::V2::EnvironmentsController#destroy as JSON
 Parameters: {"organization_id"=>"3", "api_version"=>"v2", "id"=>"xx"}
 cannot delete record because of dependent hosts (ActiveRecord::DeleteRestrictionError)

Environment

  • Red Hat Satellite 6.1

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.