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. When the containers are deleted by the service, any data on the ephemeral storage is lost.

    1. Open the navigation menu and click Developer Services. Under Containers & Artifacts, click Container Instances.
    2. Under List scope, select the compartment that contains the container instance.
    3. Click the name of the container instance that you're interested in.
    4. Click Delete.
    5. If you want to delete the boot volume that is associated with the container instance, select the Permanently delete the attached boot volume check box.
    6. Click 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.

    $ 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.