public Deferred < Object > deleteUidAsync ( final String type , final String name ) { final UniqueIdType uid_type = UniqueId . stringToUniqueIdType ( type ) ; switch ( uid_type ) { case METRIC : return metrics . deleteAsync ( name ) ; case TAGK : return tag_names . deleteAsync ( name ) ; case TAGV : return tag_values . deleteAsync ( name ) ; default : throw new IllegalArgumentException ( "Unrecognized UID type: " + uid_type ) ; } }
Attempts to delete the given UID name mapping from the storage table as well as the local cache .