If all bugs in a batch have been deleted, it deletes that batch