metalcloud-cli drive delete
Remove a drive from the infrastructure
Synopsis
Section titled “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
Section titled “Delete a drive by ID”metalcloud-cli drive delete my-infrastructure 12345
Delete a drive using infrastructure ID
Section titled “Delete a drive using infrastructure ID”metalcloud-cli drive rm 1001 67890
metalcloud-cli drive delete infrastructure_id_or_label drive_id [flags]Options
Section titled “Options” -h, --help help for deleteOptions inherited from parent commands
Section titled “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
Section titled “SEE ALSO”- metalcloud-cli drive - Manage drives within infrastructures