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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content