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
Go to ECS Console - Image Builder.
In the upper-left corner of the page, select a region and resource group.
-
On the Image Builder page, click the Image Templates tab. Find the target template and click Delete in the Actions column.
-
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
Go to ECS Console - Image Builder.
In the upper-left corner of the page, select a region and resource group.
-
On the Image Builder page, click the Image Components tab.
-
On the Custom Components tab, find the target component and click Delete in the Actions column.
-
In the confirmation dialog box, click OK.
API references
You can also call the following API operations: