Deleting a Container Instance

Delete a container instance.

You can permanently delete container instances that you no longer need. Any attached VNICs are automatically detached when the container instance is deleted. Eventually, the container instance's public and private IP addresses are released and become available for other container instances.

Caution

When you delete a container instance, any data on the ephemeral storage is lost.
    1. Navigate to the Container Instances list page. If you need help finding the list page, see Listing Container Instances.
    2. Select the name of the container instance that you're interested in.
    3. From the Actions menu, select Delete.
    4. If you want to delete the boot volume that is associated with the container instance, select the Permanently delete the attached boot volume checkbox.
    5. Select Delete instance. Deleted container instances temporarily remain in the list of instances with the state Deleted.
  • Use the container-instances container-instance delete command to delete a container instance. To use this command, replace id with your resource OCID.

    export id=ocid1.computecontainerinstance.oc1.iad.example
    oci container-instances container-instance delete --container-instance-id "$id"

    For a complete list of flags and variable options for CLI commands, see the Command Line Reference.

  • For information about using the API and signing requests, see REST API documentation and Security Credentials. For information about SDKs, see Software Development Kits and Command Line Interface.

    Use the DeleteContainerInstance operation.