adds delete function tu subcategories