# metalcloud-cli file-share delete Delete an existing file share ## Synopsis 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 metalcloud-cli file-share delete my-infrastructure 12345 ## Delete using infrastructure ID metalcloud-cli file-share delete 100 12345 ``` metalcloud-cli file-share delete infrastructure_id_or_label file_share_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 * [metalcloud-cli file-share](/content/configuration/cli/metalcloud-cli_file-share.md) - Manage file shares for infrastructure resources #### Auto generated by spf13/cobra on 11-Aug-2025