Popularity
2.0
Declining
Activity
1.4
-
101
11
4

Monthly Downloads: 219
Programming language: JavaScript
License: MIT License
Tags: Command Line Apps     Files     File     Linux     Windows     Directory     Osx     Dir     Directories     Recycle     Trash     Macos     Clear     Empty    
Latest version: v3.0.0

empty-trash alternatives and similar modules

Based on the "Command Line Apps" category

Do you think we are missing an alternative of empty-trash or a related project?

Add another 'Command Line Apps' Module

README

empty-trash Build Status

Empty the trash

Works on macOS, Linux, and Windows.

Install

$ npm install empty-trash

Usage

const emptyTrash = require('empty-trash');

(async () => {
    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.