Logo

0x5a.live

for different kinds of informations and explorations.

GitHub - sindresorhus/empty-trash: Empty the trash

Empty the trash. Contribute to sindresorhus/empty-trash development by creating an account on GitHub.

Visit SiteGitHub - sindresorhus/empty-trash: Empty the trash

GitHub - sindresorhus/empty-trash: Empty the trash

Empty the trash. Contribute to sindresorhus/empty-trash development by creating an account on GitHub.

Powered by 0x5a.live ๐Ÿ’—

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

NodeJS Resources

are all listed below.

Resources

listed to get explored on!!

Made with โค๏ธ

to provide different kinds of informations and resources.