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