that strongly depends why you'd want to remove it. why is the content removed although objects are still referencing it? what should happen if you use an object that references content that has been removed?
removing content is easy ;)
making everything else still work is the challenge and it starts by defining what behavior you! want.