# metalcloud-cli site decommission Archive a site and mark it as inactive ## Synopsis Decommission (archive) a site and mark it as inactive in the system. This command permanently decommissions a site, making it unavailable for new deployments while preserving historical data. Once decommissioned, a site cannot be reactivated and any existing infrastructure should be migrated to other sites before decommissioning. Warning: This operation is irreversible. Ensure all infrastructure has been properly migrated before decommissioning a site. Required Arguments: site_id_or_name Site identifier (ID or name) to decommission Required Permissions: sites:write - Permission to modify sites Examples: ## Decommission a site by name metalcloud-cli site decommission "old-datacenter" ## Decommission a site by ID metalcloud-cli site decommission 12345 ``` metalcloud-cli site decommission site_id_or_name [flags] ``` ### Options ``` -h, --help help for decommission ``` ### 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 site](/content/configuration/cli/metalcloud-cli_site.md) - Manage sites (datacenters) and their configurations #### Auto generated by spf13/cobra on 11-Aug-2025