Cancel resources on the ThreeFold Grid by project name or contract ID.
Cancel entire projects or specific VMs within multi-VM projects.
tfcmd cancel --project-name <project-name>Required Flags:
--project-name: Project name to cancel
This cancels all resources in the project (all VMs, gateways, and the network).
Example:
$ tfcmd cancel --project-name vm/examplevm
3:37PM INF canceling project 'vm/examplevm'
3:37PM INF successfully canceled project 'vm/examplevm'tfcmd cancel --project-name <project-name> --vm <vm-name>Required Flags:
--project-name: Project name containing the VM
Optional Flags:
--vm: Specific VM name to cancel (if not specified, cancels entire project)
This removes a specific VM from a multi-VM project while keeping other VMs running. The network is automatically updated to remove the canceled VM's node.
Example:
# Cancel vm02 from multi-VM project, keep vm01 and vm03 running
$ tfcmd cancel --project-name myapp --vm vm02
3:40PM INF canceling VM 'vm02' from project 'myapp'
3:40PM INF successfully canceled VM 'vm02'Cancel twin contracts directly by contract ID.
tfcmd cancel contracts [flags]Required Flags:
--contract-id: Contract ID to cancel
Example:
$ tfcmd cancel contracts --contract-id 123456
3:45PM INF canceling contract 123456
3:45PM INF successfully canceled contract 123456To find your existing project names, use:
tfcmd get contractsFor VMs deployed with default project names, use vm/{vmname}:
# Old command
tfcmd get vm myvm
# New command
tfcmd get vm myvm --project-name vm/myvmWhen canceling VMs from multi-VM projects:
- ✅ The network is automatically updated
- ✅ The canceled VM's node is removed from the network
- ✅ Other VMs in the project continue running
- ✅ Network routes are recalculated
# Cancel entire development environment
tfcmd cancel --project-name dev/myapp# Remove specific faulty VM while keeping others running
tfcmd cancel --project-name production/webapp --vm web03# Cancel specific contract by ID
tfcmd cancel contracts --contract-id 987654Common errors and solutions:
- Project not found: Check project name with
tfcmd get contracts - VM not in project: Verify VM name exists in the project
- Contract already canceled: Contract may already be canceled
- Permission denied: Ensure you own the contract/project
Warning: The cancel command now requires the
--project-nameflag:
- Old:
tfcmd cancel <name> - New:
tfcmd cancel --project-name <project>
See the migration guide in the VM documentation for details.