You can delete the templates that you uploaded to the tenant.
Ensure that the template is not used in any orchestrations.
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 theimagelist
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.