empty-trash
TypeScript icon, indicating that this package has built-in type declarations

4.0.0 • Public • Published

empty-trash

Empty the trash

Works on macOS, Linux, and Windows.

Install

npm install empty-trash

Usage

import emptyTrash from 'empty-trash';

await emptyTrash();

Info

On macOS, AppleScript is used as it's the only way to do it without incurring permission issues.

On Linux, the XDG spec is followed.

On Windows, empty-recycle-bin is used.

Related

Package Sidebar

Install

npm i empty-trash

Weekly Downloads

53

Version

4.0.0

License

MIT

Unpacked Size

20.6 kB

Total Files

6

Last publish

Collaborators

  • sindresorhus