I want to remove a publication with over 5000 components. First I unpublished all pages. Then I ran a decommission script. When finished, I deleted all pages. Now are only the components left.
I wrote a script for those last components, to remove it all... The script has a do while loop and loops until no component can be deleted anymore. About 1500 of the 5000 components are left. They link to each other. Like: A has a componentlink to B and the other way around.
Before any database hacks or something like that, I wonder what options do I have to delete these components? Let's skip the manual way (where used, and delete). It could be automated though. Or is there a way via the core service to force deletion (I do now use $core.delete(id)).