This script can remove scope boxes by two criteria.
The first option is that the user selects scope boxes by the name and in that way selected scope boxes will be deleted. The second option is that the user can select that the script removes all scope boxes that are not in use.
Finally, the user can use both options at the same time in order to remove scope boxes. It can select scope boxes by name and also option to delete unused scope boxes in the same run.
Please make sure that before you start using this script that you back up your existing project model.
Also, if you want to download this (and all other scripts) with my sample files please visit the Shop page.
The script uses the following Dynamo packages: DynaMEP | v.1.2.8 Data-Shapes | v.2022.2.96