Can I delete useless elements in SW?

I would like to know if there are any easier ways to delete the elements which are not used in the assembly.I would like to delete all the useless elements without checking for parent children relation for each of the elements if there is some way to do the same, please let me know