README
xdg-empty-trash
Empty trash on Linux
Install
$ npm install --save xdg-empty-trash
Usage
const xdgEmptyTrash = require('xdg-empty-trash');
xdgEmptyTrash().then(() => {
console.log('Trash successfully emptied!');
});
API
xdgEmptyTrash()
Empties the trash. Returns a promise that resolves nothing.
CLI
See the empty-trash CLI.
License
MIT © Kevin Mårtensson