Update code to delete category