ComponentDto project = db.componentDao().getById(projectId, session);
checkPermission(userSession, project.key());
QualityProfileDto qualityProfile = findNotNull(profileId, session);
db.propertiesDao().deleteProjectProperty(QProfileProjectLookup.PROFILE_PROPERTY_PREFIX + qualityProfile.getLanguage(), project.getId(), session);
session.commit();
} finally {
MyBatis.closeQuietly(session);
}
}