This will Explain on how to list a group of element by name and delete them through Command Line.
To delete groups, you should first confirm the elements that you intend to delete exist using the following command:
nhListElements -where "name matches *name*" -outFile $NH_HOME/tmp/file.txt
Once you have identified the proper element names in the output file, run the following command to delete them:
nhListElements -where "name matches *name*" | nhDeleteElements
Warning: Once the command completes, the elements and all data collected for them will be lost.