agave-metadata/metadata-core/src/main/java/org/iplantc/service/metadata/search/MetadataSearch.java
/**
     * Delete the {@link MetadataItem} matching the given uuid and tenantId
     * @param uuid id of MetadataItem to delete
     * @param tenantId tenant of MetadataItem to delete
     * @return successfully deleted MetadataItem, null if delete unsuccessful
     * @throws MetadataException if
     *
     *
     */
Delete the  MetadataItem matching the given uuid and tenantId
@param uuid id of MetadataItem to delete
@param tenantId tenant of MetadataItem to delete
@return successfully deleted MetadataItem, null if delete unsuccessful
@throws MetadataException if
Delete the MetadataItem matching the given uuid and tenantId @param uuid id of MetadataItem to delete @param tenantId tenant of MetadataItem to delete @return successfully deleted MetadataItem null if delete unsuccessful @throws MetadataException if
public MetadataItem deleteMetadataItem(String uuid, String tenantId) throws MetadataException {
        if (StringUtils.isBlank(uuid))
            throw new MetadataException("Uuid cannot be null.");
        if (StringUtils.isBlank(tenantId))
            throw new MetadataException("TenantId cannot be null.");
        getMetadataDao().setAccessibleOwners(this.accessibleOwners);
        MetadataItem metadataItem = getMetadataDao().findSingleMetadataItem(
                and(eq("uuid", uuid), eq("tenantId", tenantId)));
        if (metadataItem != null) {
            return getMetadataDao().deleteMetadata(metadataItem);
        } else {
            return null;
        }
    }
public MetadataItem deleteMetadataItem ( String uuid , String tenantId ) throws MetadataException { if ( StringUtils . isBlank ( uuid ) ) throw new MetadataException ( "Uuid cannot be null." ) ; if ( StringUtils . isBlank ( tenantId ) ) throw new MetadataException ( "TenantId cannot be null." ) ; getMetadataDao ( ) . setAccessibleOwners ( this . accessibleOwners ) ; MetadataItem metadataItem = getMetadataDao ( ) . findSingleMetadataItem ( and ( eq ( "uuid" , uuid ) , eq ( "tenantId" , tenantId ) ) ) ; if ( metadataItem != null ) { return getMetadataDao ( ) . deleteMetadata ( metadataItem ) ; } else { return null ; } }
Delete the {@link MetadataItem} matching the given uuid and tenantId
 @param uuid id of MetadataItem to delete
 @param tenantId tenant of MetadataItem to delete
 @return successfully deleted MetadataItem, null if delete unsuccessful
 @throws MetadataException if
Delete the { @link MetadataItem } matching the given uuid and tenantId @param uuid id of MetadataItem to delete @param tenantId tenant of MetadataItem to delete @return successfully deleted MetadataItem null if delete unsuccessful @throws MetadataException if
//find item to delete