# trash-cli **Repository Path**: mirrors_vadimdemedes/trash-cli ## Basic Information - **Project Name**: trash-cli - **Description**: Move files and folders to the trash - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-26 - **Last Updated**: 2025-09-21 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # [trash-cli](https://github.com/sindresorhus/trash)CLI [![Build Status](https://travis-ci.org/sindresorhus/trash-cli.svg?branch=master)](https://travis-ci.org/sindresorhus/trash-cli) > Move files and folders to the trash Works on OS X, Linux, and Windows. In contrast to [`rm`](http://en.wikipedia.org/wiki/Rm_(Unix)) which is [dangerous](http://docstore.mik.ua/orelly/unix3/upt/ch14_03.htm) and permanently delete files, this only moves them to the trash, which is much safer and reversible. You should not alias `rm` to `trash` however as that would break most scripts relying on `rm` behavior. Rather use `trash` from the CLI and in your own scripts. I would also recommend reading my guide on [safeguarding `rm`](https://github.com/sindresorhus/guides/blob/master/how-not-to-rm-yourself.md#safeguard-rm). ## Install ``` $ npm install --global trash-cli ``` ## Usage ``` $ trash --help Usage $ trash [...] Examples $ trash unicorn.png rainbow.png $ trash '*.png' '!unicorn.png' ``` ## Tip Add `alias t=trash` to your `.zshrc`/`.bashrc` to reduce typing: `$ t unicorn.png`. ## [FAQ](https://github.com/sindresorhus/trash#faq) ## Related - [trash](https://github.com/sindresorhus/trash) - API for this module - [empty-trash-cli](https://github.com/sindresorhus/empty-trash-cli) - Empty the trash - [del-cli](https://github.com/sindresorhus/del-cli) - Delete files and folders ## License MIT © [Sindre Sorhus](http://sindresorhus.com)