trash-cli Move files and folders to the trash Works on macOS (10.12+), Linux, and Windows (8+) Accepts paths and patterns npm install --global trash-cli Usage trash unicorn.png rainbow.png delete files trash '*.png' trash '*.png' Patterns * matches any number of characters, but not / ? matches a single character, but not / ** matches any number of characters, including /, as long as it's the only thing in a path part allows for a comma-separated list of "or" expressions ! at the beginning of a pattern will negate the match