This script will detect and delete SCCM Collections that have no members and no deployment assigned to it.

This can be useful to delete unused/unneeded collections.

 

More information: https://www.systemcenterdudes.com/sccm-script-delete-collection/