How to List and Delete a Group of Element through Command line

Document ID : KB000029154
Last Modified Date : 14/02/2018
Show Technical Document Details

Summary:

This will Explain on how to list a group of element by name and delete them through Command Line.

Instructions:

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.