code: public void deletePropertyDefinition(CmsRequestContext context, String name)
      throws CmsException, CmsSecurityException, CmsRoleViolationException {
  
          CmsDbContext dbc = m_dbContextFactory.getDbContext(context);
          try {
              checkOfflineProject(dbc);
              checkRole(dbc, CmsRole.WORKPLACE_MANAGER.forOrgUnit(null));
              m_driverManager.deletePropertyDefinition(dbc, name);
          } catch (Exception e) {
              dbc.report(null, Messages.get().container(Messages.ERR_DELETE_PROPERTY_1, name), e);
          } finally {
              dbc.clear();
          }
      }
docs: Deletes a property definition.<p>
  
  @param context the current request context
  @param name the name of the property definition to delete
  
  @throws CmsException if something goes wrong
  @throws CmsSecurityException if the project to delete is the "Online" project
  @throws CmsRoleViolationException if the current user does not own the role {@link CmsRole#WORKPLACE_MANAGER}