v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1474216311.3 KB

Deletes a specified instance, which terminates the associated Amazon EC2 instance. You must stop an instance before you can delete it.

For more information, see Deleting Instances.

Required Permissions: To use this action, an IAM user must have a Manage permissions level for the stack, or an attached policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions.

post/#X-Amz-Target=OpsWorks_20130218.DeleteInstance

Headers

X-Amz-Target'OpsWorks_20130218.DeleteInstance' required

Request body

InstanceIdstring required

The instance ID.

DeleteElasticIpboolean

Whether to delete the instance Elastic IP address.

DeleteVolumesboolean

Whether to delete the instance's Amazon EBS volumes.

Response

Success