mirror of
https://github.com/nushell/nushell.git
synced 2025-08-14 07:19:00 +02:00
Autogenerate missing docs (#3514)
* Autogenerate missing docs * Update ansi.md * Rename question mark command docs * Delete empty?.md
This commit is contained in:
39
docs/commands/rm.md
Normal file
39
docs/commands/rm.md
Normal file
@ -0,0 +1,39 @@
|
||||
# rm
|
||||
Remove file(s).
|
||||
|
||||
## Usage
|
||||
```shell
|
||||
> rm ...args {flags}
|
||||
```
|
||||
|
||||
## Parameters
|
||||
* ...args: the file path(s) to remove
|
||||
|
||||
## Flags
|
||||
* -h, --help: Display this help message
|
||||
* -t, --trash: use the platform's recycle bin instead of permanently deleting
|
||||
* -p, --permanent: don't use recycle bin, delete permanently
|
||||
* -r, --recursive: delete subdirectories recursively
|
||||
* -f, --force: suppress error when no file
|
||||
|
||||
## Examples
|
||||
Delete or move a file to the system trash (depending on 'rm_always_trash' config option)
|
||||
```shell
|
||||
> rm file.txt
|
||||
```
|
||||
|
||||
Move a file to the system trash
|
||||
```shell
|
||||
> rm --trash file.txt
|
||||
```
|
||||
|
||||
Delete a file permanently
|
||||
```shell
|
||||
> rm --permanent file.txt
|
||||
```
|
||||
|
||||
Delete a file, and suppress errors if no file is found
|
||||
```shell
|
||||
> rm --force file.txt
|
||||
```
|
||||
|
Reference in New Issue
Block a user