as the eHealth User, NH_USER from the $NH_HOME/bin on the command line or Terminal follow the instructions below:
1. nhListElements -where "ipAddr matches *<ip address>*" -outFile elements.txt
(this will generate the output file containing the elements name associated with the Ip address listed)
2. Vi elements.txt to review the Elements names.
3. nhListElements -where "ipAddr matches *<ip address>*" |nhDeleteElements
Note that deleting elements removes all historical data for the deleted elements as well as the elements configuration. There is no way to undo this action. The only recourse to restore the data is to restore a backup of the eHealth database. Any data collected between the time of the save and the load would be lost for all elements, not just the deleted ones.
This is a good solution! I would like to add one additional note for you…
This is a little safer method with a very important bonus - if you find elements in your elements.txt file that you DON’T want to delete, you can remove those entries from your file and then run the delete command.
After you check your element.txt file that you created in the first step with nhListElements, you can run the nhDeleteElements command and simply feed it your file:
nhDeleteElements –inFile elements.txt