agave-metadata/metadata-core/src/main/java/org/iplantc/service/metadata/dao/MetadataSchemaPermissionDao.java
/**
     * Deletes all permissions for the metadata schema with given schemaId
     *
     * @param schemaId the id to delete
     * @throws org.iplantc.service.metadata.exceptions.MetadataException
     */
Deletes all permissions for the metadata schema with given schemaId
@param schemaId the id to delete
@throws org.iplantc.service.metadata.exceptions.MetadataException
Deletes all permissions for the metadata schema with given schemaId @param schemaId the id to delete @throws org . iplantc . service . metadata . exceptions . MetadataException
public static void deleteBySchemaId(String schemaId) throws MetadataException {
        if (schemaId == null) {
            return;
        }
        try {
            MongoCollection<MetadataSchemaPermission> metadataSchemaPermissionCollection;
            metadataSchemaPermissionCollection = getDefaultMetadataSchemaPermissionCollection();
            Bson deleteQuery = eq("schemaId", schemaId);
            DeleteResult deleteResult = metadataSchemaPermissionCollection.deleteOne(deleteQuery);
            if (deleteResult.getDeletedCount() == 0) {
            }
        } catch (MongoException ex) {
            throw new MetadataException("Failed to delete metadata schema permission", ex);
        }
    }
public static void deleteBySchemaId ( String schemaId ) throws MetadataException { if ( schemaId == null ) { return ; } try { MongoCollection < MetadataSchemaPermission > metadataSchemaPermissionCollection ; metadataSchemaPermissionCollection = getDefaultMetadataSchemaPermissionCollection ( ) ; Bson deleteQuery = eq ( "schemaId" , schemaId ) ; DeleteResult deleteResult = metadataSchemaPermissionCollection . deleteOne ( deleteQuery ) ; if ( deleteResult . getDeletedCount ( ) == 0 ) { } } catch ( MongoException ex ) { throw new MetadataException ( "Failed to delete metadata schema permission" , ex ) ; } }
Deletes all permissions for the metadata schema with given schemaId
 @param schemaId the id to delete
 @throws org.iplantc.service.metadata.exceptions.MetadataException
Deletes all permissions for the metadata schema with given schemaId @param schemaId the id to delete @throws org . iplantc . service . metadata . exceptions . MetadataException
//delete unsuccessful //				return null;