I'm trying to replicate the functionality of right-clicking on a scene collection, and selecting 'DELETE', which removes the collection but does not remove any of the objects.
However, all functions and answers I found (unlink, collection.remove, etc) always remove all the objects that are part of the collection, which I'm trying to avoid.