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.
- [x] recursively delete a folder from all supported services
- [x] oauth to connect to github and dropbox
- [x] remember connection token from oauth
- [x] use batch instead of delete each file
- [x] option to confirm deletion
- [ ] support cli patterns in file paths
bd SERVICE FILE [OPTION]...
Possible values of the
service option (case insensitive):
|local file system||fs|
|NextCloud/Owncloud (with webdav)||webdav|
-ttest mode => will prompt which file/folder would be deleted
Install the npm package
$ npm install -g batch-delete
Delete the local
$ bd fs ~/Videos Done.
Delete remote folders:
$ bd dropbox Photos Done. $ bd ftp www Done. $ bd github repo1/master/ Done.
$ npm i
test folder in the current directory
$ node ./lib/ fs test