DeleteWorkspaceImage
Deletes the specified image from your account. To delete an image, you must first delete any bundles that are associated with the image and unshare the image if it is shared with other accounts.
Request Syntax
{
"ImageId": "string
"
}
Request Parameters
The request accepts the following data in JSON format.
- ImageId
-
The identifier of the image.
Type: String
Pattern:
wsi-[0-9a-z]{9,63}$
Required: Yes
Response Elements
If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.
Errors
For information about the errors that are common to all actions, see Common Errors.
- AccessDeniedException
-
The user is not authorized to access a resource.
HTTP Status Code: 400
- InvalidResourceStateException
-
The state of the resource is not valid for this operation.
HTTP Status Code: 400
- ResourceAssociatedException
-
The resource is associated with a directory.
HTTP Status Code: 400
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: