Skip to content

cuishaoyun/empty-trash

 
 

Repository files navigation

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

About

Empty the trash

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 94.0%
  • TypeScript 6.0%