After deleting ACME_Corporation from my server through the UI, apparently successfully, a later call to 'rake katello:reindex' failed. Looking at the psql database I see there was still a Library environment in katello_environments table for ACME.
Unclear if other org-dependent objects are also orphaned.
Created from redmine issue http://projects.theforeman.org/issues/5949
Org destroy has been pushed out to 6.0.4.
Confirmed as working as part of https://bugzilla.redhat.com/show_bug.cgi?id=1100311. QA, please verify.
Verified in Satellite-6.0.4-RHEL-6-20140806.0
This was delivered with Satellite 6.0 which was released on 10 September 2014.