"use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.metadata=void 0;const query_1=require("@b/utils/query");exports.metadata={summary:"Deletes a specific category",operationId:"deleteCategory",tags:["Admin","Content","Category"],parameters:(0,query_1.deleteRecordParams)("Category"),responses:(0,query_1.deleteRecordResponses)("Category"),permission:"delete.blog.category",requiresAuth:!0,logModule:"ADMIN_BLOG",logTitle:"Delete category"};exports.default=async e=>{const{params:t,query:r,ctx:s}=e;null==s||s.step("Validating category ID");null==s||s.step("Deleting category");const a=await(0,query_1.handleSingleDelete)({model:"category",id:t.id,query:r});null==s||s.success("Category deleted successfully");return a};