Deleting and updating categories