Undeleting (Restoring) an Image

Find out how to undelete (restore) an image from Container Registry.

You can undelete an image you've previously deleted, for up to 48 hours after you deleted it. After that time, the image is permanently removed from Container Registry. You use the Oracle Cloud Infrastructure REST API and CLI to undelete images.

  • This task cannot be performed using the Console.

  • Use the oci artifacts container image restore command and required parameters to undelete an image you've previously deleted:

    oci artifacts container image restore --image-id <image-ocid> [OPTIONS]
    For example:
    oci artifacts container image restore --image-id ocid1.containerimage.oc1.phx.0.ansh81vru1zp.aaaaaaaalqzjyks...

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

  • Run the RestoreContainerImage operation to undelete an image you've previously deleted.