A cross-platform CLI tool to delete files and directories with glob support, dry-run mode, and safety features.
del-cli is a command-line tool for deleting files and directories, designed for use in build scripts and automated workflows. It provides a safer alternative to commands like `rm -rf` by preventing accidental deletion of parent directories by default and offering features like glob support and dry-run mode. The tool is cross-platform, making file deletion consistent across different operating systems.
Developers and DevOps engineers who need to manage file deletion in build scripts, CI/CD pipelines, or automated tasks, especially those working in cross-platform environments.
Developers choose del-cli over native deletion commands because it offers enhanced safety features, cross-platform glob support, and a dry-run mode to preview deletions, reducing the risk of accidental data loss in automated workflows.
Delete files and directories
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Supports glob patterns for file deletion even on Windows, as highlighted in the comparison with rimraf and rm -rf, making it ideal for cross-platform build scripts.
Prevents accidental deletion of parent directories by default, reducing data loss risks in automated workflows, a key feature mentioned in the safety mechanisms.
Allows previewing deletions without execution via the --dry-run option, useful for verifying actions in CI/CD pipelines, as described in the usage examples.
Displays absolute paths of deleted items with --verbose, aiding in debugging and audit trails, as noted in the feature list.
Lacks a trash or recycle feature; deletions are irreversible, which could be risky, as the README references trash-cli for safer alternatives.
Requires Node.js and npm for installation, adding overhead compared to native OS commands that are built-in and lightweight.
On Windows, users must use 'del-cli' instead of 'del' due to name conflict, potentially leading to errors or forgotten usage, as warned in the README.