All Products
Search
Document Center

Elastic Compute Service:Delete image templates and image components

Last Updated:May 15, 2026

Delete and recreate faulty image templates or components, or remove unused ones to free up resources.

Prerequisites

Image Builder uses a service-linked role named AliyunServiceRoleForECSImageBuilder to access related cloud resources. An Alibaba Cloud account has the required permissions by default. If you use a RAM user, grant the user permissions to manage this role. See Manage the service-linked role for Image Builder.

Delete an image template

Usage notes

Before deleting an image template:

  • You cannot delete a template while an associated image building task is running. Wait for the task to complete.

  • Deleting a template does not affect images built from it.

Procedure

  1. Go to ECS Console - Image Builder.

  2. In the upper-left corner of the page, select a region and resource group.地域

  3. On the Image Builder page, click the Image Templates tab. Find the target template and click Delete in the Actions column.

  4. In the confirmation dialog box, click OK.

Delete an image component

Limitations

  • Only custom components can be deleted. System components cannot be deleted.

  • If a component is referenced by a template, delete the template first, then delete the component.

Procedure

  1. Go to ECS Console - Image Builder.

  2. In the upper-left corner of the page, select a region and resource group.地域

  3. On the Image Builder page, click the Image Components tab.

  4. On the Custom Components tab, find the target component and click Delete in the Actions column.

  5. In the confirmation dialog box, click OK.

API references

You can also call the following API operations: