a category can only be deleted when it contains zero events