Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

del-cli

Package Overview
Dependencies
Maintainers
0
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

del-cli

Delete files and directories - Cross-platform

  • 6.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
337K
increased by8.89%
Maintainers
0
Weekly downloads
 
Created

What is del-cli?

The del-cli package is a command-line tool for deleting files and directories using glob patterns. It is a convenient wrapper around the 'del' module, making it easy to use from the command line.

What are del-cli's main functionalities?

Delete files

This feature allows you to delete a specific file by providing its path.

del-cli 'path/to/file.txt'

Delete directories

This feature allows you to delete an entire directory and its contents by providing the directory path.

del-cli 'path/to/directory'

Use glob patterns

This feature allows you to use glob patterns to delete multiple files that match the pattern. For example, this command deletes all .txt files in the specified directory.

del-cli 'path/to/files/*.txt'

Force delete

This feature allows you to forcefully delete files or directories that are normally protected. Use with caution.

del-cli 'path/to/file.txt' --force

Dry run

This feature allows you to perform a dry run, showing which files would be deleted without actually deleting them. This is useful for testing your glob patterns.

del-cli 'path/to/files/*.txt' --dry-run

Other packages similar to del-cli

Keywords

FAQs

Package last updated on 07 Oct 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc