add bulk deletion support to ark backup delete

Signed-off-by: Steve Kriss <steve@heptio.com>
This commit is contained in:
Steve Kriss
2018-08-08 10:28:40 -07:00
parent 1f7a4a1665
commit 5acccaa739
5 changed files with 159 additions and 37 deletions
+27 -5
View File
@@ -1,21 +1,43 @@
## ark backup delete
Delete a backup
Delete backups
### Synopsis
Delete a backup
Delete backups
```
ark backup delete NAME [flags]
ark backup delete [NAMES] [flags]
```
### Examples
```
# delete a backup named "backup-1"
ark backup delete backup-1
# delete a backup named "backup-1" without prompting for confirmation
ark backup delete backup-1 --confirm
# delete backups named "backup-1" and "backup-2"
ark backup delete backup-1 backup-2
# delete all backups triggered by schedule "schedule-1"
ark backup delete --selector ark-schedule=schedule-1
# delete all backups
ark backup delete --all
```
### Options
```
--confirm Confirm deletion
-h, --help help for delete
--all Delete all backups
--confirm Confirm deletion
-h, --help help for delete
-l, --selector labelSelector Delete all backups matching this label selector (default <none>)
```
### Options inherited from parent commands