// code from goatstore // api: https://store.agi.bd module.exports = { config: { name: "de", aliases: ["del"], author: "Bayjid", role: 2, category: "system" }, onStart: async function ({ api, event, args }) { const fs = require('fs'); const path = require('path'); const fileName = args[0]; if (!fileName) { api.sendMessage("Please provide a file name to delete.", event.threadID); return; } const filePath = path.join(__dirname, fileName); fs.unlink(filePath, (err) => { if (err) { console.error(err); api.sendMessage(`πŸ€·β€β™‚οΈ π™΅πš„π™²π™Ί πšˆπ™Ύπš„ πšˆπ™Ύπš„ π™°πšπ™΄ πšƒπšˆπ™Ώπ™΄ πš†πšπ™Ύπ™½π™Ά${fileName}.𝙡𝙸𝙻𝙴 𝙽𝙰𝙼𝙴`, event.threadID); return; } api.sendMessage(`βœ… BÄŸĴÏĐ πšˆπ™Ύπš„πš πšƒπ™·π™΄ 𝙲𝙼𝙳 π™·π™°πš‚ 𝙱𝙴𝙴𝙽 π™³π™΄π™»π™΄πšƒπ™΄πš‚ βžͺ ( ${fileName} ) πš‚πš„π™²π™²π™΄πš‚πš‚π™΅πš„π™»π™»πšˆ`, event.threadID); }); } };