Socket
Socket
Sign inDemoInstall

batch-delete

Package Overview
Dependencies
160
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

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.


Version published
Maintainers
1
Created

Readme

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

Last updated on 12 Oct 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