> ## Documentation Index
> Fetch the complete documentation index at: https://docs.coral.inc/llms.txt
> Use this file to discover all available pages before exploring further.

# Terminate on Oracle Cloud

> How to permanently terminate a Compute instance running OpenClaw on Oracle Cloud Infrastructure (OCI)

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.

<Warning>
  Complete the [pre-termination checklist](/security/terminate-instance#pre-termination-checklist) before proceeding. Termination is irreversible.
</Warning>

***

## Option 1: OCI Console

<Steps>
  <Step title="Open Compute Instances">
    Sign in to the [OCI Console](https://cloud.oracle.com/compute/instances) and navigate to **Compute → Instances**.
  </Step>

  <Step title="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.
  </Step>

  <Step title="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.
  </Step>

  <Step title="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**.
  </Step>
</Steps>

**Official OCI documentation:** [Terminating an Instance](https://docs.oracle.com/en-us/iaas/Content/Compute/Tasks/terminatinginstance.htm)

***

## Option 2: OCI CLI

If you have the [OCI CLI](https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/cliinstall.htm) installed:

```bash theme={null}
# 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](https://docs.oracle.com/iaas/tools/oci-cli/latest/oci_cli_docs/cmdref/compute/instance/terminate.html)

***

## 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:

```bash theme={null}
# 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:

```bash theme={null}
# 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

```bash theme={null}
# 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:

```bash theme={null}
# 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](/security/terminate-instance#post-termination-checklist) for the full list.
