@kontent-ai/core-sdk
Version:
Core package with shared / common functionality for Kontent.ai SDKs
11 lines • 363 B
JavaScript
import { rmSync } from "node:fs";
import chalk from "chalk";
export function deleteFolderRecursive(path) {
console.log(`Deleting existing folder '${chalk.yellow(path)}'`);
rmSync(path, {
recursive: true,
force: true,
});
console.log(`Folder '${chalk.yellow(path)}' deleted successfully`);
}
//# sourceMappingURL=script.utils.js.map