Deleting a Private Template

You can delete the templates that you uploaded to the tenant.

Ensure that the template is not used in any orchestrations.

  1. Log in to the UI and go to the Self Service Portal.
  2. In the Self Service Portal, click the Library tab.
  3. Select the private template that you want to delete.
  4. Click Delete.
  5. Confirm the delete action.

Deleting a Private Template Using the CLI or API

Deleting a private template using the CLI includes deleting the machine image and the corresponding image list and image list entry.

Use the following commands to delete a private template:

oracle-compute delete machineimage name

oracle-compute delete imagelistentry imagelist name version

oracle-compute delete imagelist name

Note:

If you delete the imagelist before deleting the imagelistentry, the imagelistentry is also deleted as part of the imagelist.

For more information, see CLI Reference for Oracle Compute Cloud Service.

The following table lists the API methods to delete a private template.

Action API Method
Delete a machine image. DELETE https://api.oc.example.com/machineimage/name
Delete an image list entry. DELETE https://api.oc.example.com/imagelistentry/name/entry/version
Delete an image list. DELETE https://api.oc.example.com/imagelist/name

For more information, see REST API Reference for Oracle Compute Cloud Service.