Skip to main content
This guide covers terminating an Oracle Cloud Infrastructure (OCI) Compute instance. Termination permanently removes the instance. By default, the boot volume is preserved after termination — you must explicitly choose to delete it, or delete it separately.
Complete the pre-termination checklist before proceeding. Termination is irreversible.

Option 1: OCI Console

1

Open Compute Instances

Sign in to the OCI Console and navigate to Compute → Instances.
2

Select the correct compartment

Use the Compartment dropdown in the left panel to select the compartment where your instance lives. The instance list is per-compartment.
3

Open the instance

Click the name of the instance running OpenClaw. Confirm the correct instance by checking its public IP address in the instance details.
4

Terminate the instance

Click More Actions → Terminate. In the dialog, check Permanently delete the attached boot volume to also remove the boot disk. Click Terminate instance.
Official OCI documentation: Terminating an Instance

Option 2: OCI CLI

If you have the OCI CLI installed:
# Find your instance OCID
oci compute instance list \
  --compartment-id <compartment-ocid> \
  --query "data[*].{id:id, name:\"display-name\", ip:\"primary-private-ip\"}" \
  --output table

# Terminate the instance (preserves boot volume by default)
oci compute instance terminate --instance-id <instance-ocid>

# Terminate and also delete the boot volume
oci compute instance terminate \
  --instance-id <instance-ocid> \
  --preserve-boot-volume false
You’ll be prompted to confirm. Add --force to skip the prompt. Official OCI CLI reference: oci compute instance terminate

Post-termination cleanup

Delete the boot volume

If you did not check “Permanently delete the attached boot volume” during termination, the boot volume still exists and incurs charges. In the console: Storage → Block Storage → Boot Volumes. Select the volume and click Terminate. Using the CLI:
# List boot volumes in a compartment
oci bv boot-volume list \
  --compartment-id <compartment-ocid> \
  --availability-domain <ad-name>

# Delete a boot volume
oci bv boot-volume delete --boot-volume-id <boot-volume-ocid>

Delete block volumes

Additional block volumes attached to the instance are not deleted when the instance terminates:
# List block volumes
oci bv volume list --compartment-id <compartment-ocid>

# Delete a block volume
oci bv volume delete --volume-id <volume-ocid>

Delete backups

# List boot volume backups
oci bv boot-volume-backup list --compartment-id <compartment-ocid>

# Delete a backup
oci bv boot-volume-backup delete --boot-volume-backup-id <backup-ocid>

Release public IPs

Reserved public IPs continue to incur charges:
# List public IPs (regional scope)
oci network public-ip list \
  --compartment-id <compartment-ocid> \
  --scope REGION

# Delete a reserved public IP
oci network public-ip delete --public-ip-id <public-ip-ocid>

Rotate credentials

After termination, rotate everything the agent had access to. See the post-termination checklist for the full list.