v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-14159650798.5 KB

Deletes a container image that is registered to your Amazon Lightsail container service.

post/#X-Amz-Target=Lightsail_20161128.DeleteContainerImage

Headers

X-Amz-Target'Lightsail_20161128.DeleteContainerImage' required

Request body

serviceNamestring required

The name of the container service for which to delete a registered container image.

imagestring required
<p>The name of the container image to delete from the container service.</p> <p>Use the <code>GetContainerImages</code> action to get the name of the container images that are registered to a container service.</p> <note> <p>Container images sourced from your Lightsail container service, that are registered and stored on your service, start with a colon (<code>:</code>). For example, <code>:container-service-1.mystaticwebsite.1</code>. Container images sourced from a public registry like Docker Hub don't start with a colon. For example, <code>nginx:latest</code> or <code>nginx</code>.</p> </note>

Response

Success

DeleteContainerImageResult required