Socket
Socket
Sign inDemoInstall

del-cli

Package Overview
Dependencies
2
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    del-cli

Delete files and directories - Cross-platform


Version published
Weekly downloads
268K
increased by9.59%
Maintainers
1
Install size
1.88 MB
Created
Weekly downloads
 

Readme

Source

del-cli

Delete files and directories

Useful for use in build scripts and automated things.

Note that this does permanent deletion. See trash-cli for something safer.

Install

$ npm install --global del-cli

Usage

$ del --help

  Usage
    $ del <path|glob> …

  Options
    --force, -f    Allow deleting the current working directory and outside
    --dry-run, -d  List what would be deleted instead of deleting

  Examples
    $ del unicorn.png rainbow.png
    $ del "*.png" "!unicorn.png"

:warning: Windows users: Since $ del is already a builtin command on Windows, you need to use $ del-cli there.

  • del - API for this module
  • trash-cli - Move files and directories to the trash
  • make-dir-cli - Make directories and their parents if needed

Keywords

FAQs

Last updated on 15 Jul 2021

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc