Found this posts.
IPAM 4.6.1 - vRO Workflows
However, is there a way only to delete specific endpoints instead of all?
Run the query below. XX.XX.XX.XX is the IP address of the hosts.
var getHosts = RESTHostManager.getHosts();
for(var restHostId in getHosts){
var restHost = RESTHostManager.getHost(getHosts[restHostId])
if (restHost.url.indexOf('xx.xx.xx.xx') > -1) {
System.log('Removing host: ' + restHost.url);
RESTHostManager.removeHost(restHost.id);
}