function cleanDBonPurge()
{
global $DB;
$gpr = new ProfileRight();
$gpr->cleanDBonItemDelete($this->getType(), $this->fields['id']);
$gpu = new Profile_User();
$gpu->cleanDBonItemDelete($this->getType(), $this->fields['id']);
Rule::cleanForItemAction($this);
// PROFILES and UNIQUE_PROFILE in RuleMailcollector
Rule::cleanForItemCriteria($this, 'PROFILES');
Rule::cleanForItemCriteria($this, 'UNIQUE_PROFILE');
$gki = new KnowbaseItem_Profile();
$gki->cleanDBonItemDelete($this->getType(), $this->fields['id']);
$gr = new Profile_Reminder();
$gr->cleanDBonItemDelete($this->getType(), $this->fields['id']);
}