delete category functionality