xdg-empty-trashdeprecated

Empty trash on Linux

Usage no npm install needed!

<script type="module">
  import xdgEmptyTrash from 'https://cdn.skypack.dev/xdg-empty-trash';
</script>

README

xdg-empty-trash Build Status

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