change deletion to be id based instead of being hostname based

@igor47 
Changes the deletion to be based on the id, because the hostname might not be set correctly and other systems consider the hostname and the id to be identical, but it is not always the case. Since external systems my be getting ids from AWS and use them directly against optica as hostname, that creates some errors when the hostname and the id are different.