MCPcopy Create free account
hub / github.com/devnullvoid/pvetui / newStorageContentDeleteCmd

Function newStorageContentDeleteCmd

internal/cli/storage.go:355–371  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

353}
354
355func 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
373func runStorageContentDelete(cmd *cobra.Command, args []string) error {
374 ctx := context.Background()

Callers 1

newStorageContentCmdFunction · 0.85

Calls 1

addNoWaitFlagFunction · 0.85

Tested by

no test coverage detected