Delete category service.
Refactor query API.