public void deletePropertyDefinition(CmsDbContext dbc, String name) throws CmsException {

        CmsPropertyDefinition propertyDefinition = null;

        try {
            // first read and then delete the metadefinition.
            propertyDefinition = readPropertyDefinition(dbc, name);
            getVfsDriver(dbc).deletePropertyDefinition(dbc, propertyDefinition);
            getHistoryDriver(dbc).deletePropertyDefinition(dbc, propertyDefinition);
        } finally {

            // fire an event that a property of a resource has been deleted
            OpenCms.fireCmsEvent(
                new CmsEvent(
                    I_CmsEventListener.EVENT_PROPERTY_DEFINITION_MODIFIED,
                    Collections.<String, Object> singletonMap("propertyDefinition", propertyDefinition)));
        }
    }
public void deletePropertyDefinition ( CmsDbContext dbc , String name ) throws CmsException { CmsPropertyDefinition propertyDefinition = null ; try { propertyDefinition = readPropertyDefinition ( dbc , name ) ; getVfsDriver ( dbc ) . deletePropertyDefinition ( dbc , propertyDefinition ) ; getHistoryDriver ( dbc ) . deletePropertyDefinition ( dbc , propertyDefinition ) ; } finally { OpenCms . fireCmsEvent ( new CmsEvent ( I_CmsEventListener . EVENT_PROPERTY_DEFINITION_MODIFIED , Collections . < String , Object > singletonMap ( "propertyDefinition" , propertyDefinition ) ) ) ; } }
Deletes a property definition.<p>

@param dbc the current database context
@param name the name of the property definition to delete

@throws CmsException if something goes wrong