We have an unmanaged package on an org with thousands of components in this package. And package has not been released yet.
Now we'd like to do some clean up and remove this package along with all its components from this org. But removing just the package does not remove artifacts from an org itself - they are continue living there just outside of the package.
Is there any way to clean up all the artifacts along with unmanaged package removal?
We've already tried to retrieve this unmanaged package to have package.xml generated for us and then used it as destructiveChanges xml file to do a clean up of everything inside the package. But it has thrown a lot of errors now complaining about dependencies between components inside the package - seems like there is a strict order in which artifacts of different types should be removed, i.e. SF doesn't allow to remove all this network of dependencies at once.
Is there some magic to remove everything at once, i.e. package and all artifacts inside without doing it a hard way by component types etc.?
Any help would be appreciated.