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