Skip to content

metalcloud-cli file-share delete

Delete an existing file share

Delete an existing file share from the specified infrastructure.

This command permanently removes a file share and all its associated data. Use with caution as this operation cannot be undone.

Required Arguments: infrastructure_id_or_label The infrastructure ID (numeric) or label containing the file share file_share_id The ID of the file share to delete

Examples:

Delete a file share by infrastructure label and file share ID

Section titled “Delete a file share by infrastructure label and file share ID”

metalcloud-cli file-share delete my-infrastructure 12345

metalcloud-cli file-share delete 100 12345

metalcloud-cli file-share delete infrastructure_id_or_label file_share_id [flags]
-h, --help help for delete
-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")

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

Section titled “Auto generated by spf13/cobra on 11-Aug-2025”