()
| 353 | } |
| 354 | |
| 355 | func newStorageContentDeleteCmd() *cobra.Command { |
| 356 | cmd := &cobra.Command{ |
| 357 | Use: "delete <node> <storage> <volid>", |
| 358 | Short: "Delete a storage content item", |
| 359 | Args: cobra.ExactArgs(3), |
| 360 | Example: ` pvetui storage content delete pve01 local local:iso/debian-12.iso |
| 361 | pvetui storage content delete pve01 local local:iso/debian-12.iso --no-wait`, |
| 362 | RunE: runStorageContentDelete, |
| 363 | } |
| 364 | |
| 365 | cmd.Flags().StringP("output", "o", "json", "Output format: json or table") |
| 366 | addNoWaitFlag(cmd) |
| 367 | |
| 368 | cmd.ValidArgsFunction = completeStorageNames |
| 369 | |
| 370 | return cmd |
| 371 | } |
| 372 | |
| 373 | func runStorageContentDelete(cmd *cobra.Command, args []string) error { |
| 374 | ctx := context.Background() |
no test coverage detected