Usage
uc machine remove, uc machine delete
Arguments
Name or ID of the machine to remove.
Flags
-y, --yes
Do not prompt for confirmation before removing the machine.
--no-reset
Do not reset the machine after removing it from the cluster. This will leave all containers and data intact.
Examples
Remove a machine (with confirmation)
Remove a machine without confirmation
Remove without resetting
This removes the machine from the cluster but leaves Docker and containers running:What Happens During Removal
With Reset (default)
- Container Removal - Stops and removes all service containers on the machine
- Cluster Removal - Removes the machine from the cluster state
- Machine Reset - Stops the Uncloud daemon and cleans up cluster data
- Config Update - Removes the machine connection from your Uncloud config
Without Reset (--no-reset)
- Cluster Removal - Removes the machine from the cluster state
- Config Update - Removes the machine connection from your Uncloud config
Output
Important Notes
Current Machine Limitation
You cannot remove the machine you’re currently connected to. If you try, you’ll see:Service Containers
All service containers on the machine will be removed. If you want to keep the services running, make sure they have replicas on other machines before removing this one.Anonymous Volumes
Anonymous volumes (created automatically fromVOLUME directives in Dockerfiles) are removed with their containers. Named volumes must be removed separately with uc volume rm.
Related Commands
uc machine add- Add a machine to the clusteruc machine ls- List machines in the clusteruc service scale- Scale services before removing a machineuc ps- View containers running on machines
