Deleting a manifest now correctly removes references in other manifests.
Removed old code