Added security query before deleting persons or groups