restrict project and package deletion - only allow if not referenced by any activity