Popularity
2.1
Declining
Activity
2.5
-
113
10
5

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.
Alternatively, view empty-trash alternatives based on common mentions on social networks and blogs.

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.

Related