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

batch-delete

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

batch-delete

Command line utility to batch delete folders from Github, Dropbox or your file system.

  • 1.0.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

Command line utility to delete folders from Github, Dropbox or your file system. The deletion is recursive and will be done in 1 operation (e.g 1 commit for github).

Supports Dropbox, Github, FTP, SFTP, Webdav, NextCloud, OwnCloud with oauth when available.

This is an efficient way to be clear data which is good for your online storage as well as for mother earth.

See also this tool to explore your cloud storage and detect which files and folders to start with

Road map

  • recursively delete a folder from all supported services
  • oauth to connect to github and dropbox
  • remember connection token from oauth
  • use batch instead of delete each file
  • option to confirm deletion
  • support cli patterns in file paths

Synopsis

bd SERVICE FILE [OPTION]...

Possible values of the service option (case insensitive):

descriptionService
DropboxDropbox
local file systemfs
FTPFTP
SFTPSFTP
GithubGithub
NextCloud/Owncloud (with webdav)webdav

Available options:

  • -t test mode => will prompt which file/folder would be deleted

Examples

Install the npm package

$ npm install -g batch-delete

Delete the local Documents folder

$ bd fs ~/Videos
Done.

Delete remote folders:

$ bd dropbox Photos
Done.
$ bd ftp www
Done.
$ bd github repo1/master/
Done.

Development

Install

$ npm i

test

Delete the test folder in the current directory

$ node ./lib/ fs test

Keywords

FAQs

Package last updated on 12 Oct 2021

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