2024-05-14 10:18:37 +02:00
|
|
|
# Removing a vault
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
|
|
|
```
|
2024-08-20 19:46:12 +02:00
|
|
|
Usage: lprs remove [OPTIONS] [INDEX-or-NAME]...
|
2024-05-14 10:18:37 +02:00
|
|
|
|
|
|
|
Arguments:
|
2024-08-20 19:46:12 +02:00
|
|
|
[INDEX-or-NAME]... The vaults to remove, index or name
|
2024-05-14 10:18:37 +02:00
|
|
|
|
|
|
|
Options:
|
2024-08-20 19:46:12 +02:00
|
|
|
-f, --force Force remove, will not return error if there is no vault with the given index or name
|
|
|
|
-h, --help Print help
|
2024-05-14 10:18:37 +02:00
|
|
|
```
|
|
|
|
|
2024-08-20 19:46:12 +02:00
|
|
|
To remove a vaults you need to provide the index or the name of each vault. If you
|
2024-05-14 10:18:37 +02:00
|
|
|
provide the index, the vault will be removed by its index, if you provide the
|
|
|
|
name, the vault will be removed the first vault with the given name.
|
|
|
|
|
|
|
|
If there is no vault with the given index or name, an error will be returned,
|
|
|
|
unless you provide the `--force` option, in which case the command will not
|
|
|
|
return an error if there is no vault with the given index or name.
|
|
|
|
|
|
|
|
## Examples
|
2024-08-20 19:46:12 +02:00
|
|
|
Remove a vaults by its index:
|
2024-05-14 10:18:37 +02:00
|
|
|
```sh
|
2024-08-20 19:46:12 +02:00
|
|
|
lprs remove 1 10 14
|
2024-05-14 10:18:37 +02:00
|
|
|
```
|
|
|
|
|
|
|
|
Remove a vault by its name:
|
|
|
|
```sh
|
2024-08-20 19:46:12 +02:00
|
|
|
lprs remove my-vault 'another vault' "third vault"
|
2024-05-14 10:18:37 +02:00
|
|
|
```
|
|
|
|
|
2024-08-20 19:46:12 +02:00
|
|
|
Force remove a vault by its index (will not return an error if there is no vault with the given index):
|
2024-05-14 10:18:37 +02:00
|
|
|
```sh
|
|
|
|
lprs remove 234 --force
|
|
|
|
```
|
|
|
|
|
|
|
|
## Notes
|
|
|
|
- The index is one-based (the first vault is 1).
|