code: 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);
      }
    }
docs: Attempts to delete the given UID name mapping from the storage table as
  well as the local cache.
  @param type The type of UID to delete. Must be "metrics", "tagk" or "tagv"
  @param name The name of the UID to delete
  @return A deferred to wait on for completion, or an exception if thrown
  @throws IllegalArgumentException if the type is invalid
  @since 2.2