delete category code implemented