delete unused mates

In my assembly I have deleted a lot of components without deleting the child features.

Now I am left with loads of unused mates.

By checking this box I can now see these unused mates as errors:

Now I would like to delete all of these mates of all the subasssemblies at once. Is there a quick way to do this?

Thanks!#

SolidworksAssemblies