metalcloud-cli drive delete

Remove a drive from the infrastructure

Synopsis

Remove a drive from the infrastructure permanently.

This command deletes a drive from the specified infrastructure. The operation is irreversible and will remove all drive data and configurations.

Arguments: infrastructure_id_or_label The ID or label of the infrastructure drive_id The unique identifier of the drive to delete

Examples:

Delete a drive by ID

metalcloud-cli drive delete my-infrastructure 12345

Delete a drive using infrastructure ID

metalcloud-cli drive rm 1001 67890

metalcloud-cli drive delete infrastructure_id_or_label drive_id [flags]

Options

  -h, --help   help for delete

Options inherited from parent commands

  -k, --api_key string         MetalCloud API key
  -c, --config string          Config file path
  -d, --debug                  Set to enable debug logging
  -e, --endpoint string        MetalCloud API endpoint
  -f, --format string          Output format. Supported values are 'text','csv','md','json','yaml'. (default "text")
  -i, --insecure_skip_verify   Set to allow insecure transport
  -l, --log_file string        Log file path
  -v, --verbosity string       Log level verbosity (default "INFO")

SEE ALSO

Auto generated by spf13/cobra on 11-Aug-2025