Bugfix: Remove entries in sample_groups for projects when being deleted.