implement category removal in the API