Skip to content

/AWS1/CL_OWX=>DELETEINSTANCE()

About DeleteInstance

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.

Method Signature

IMPORTING

Required arguments:

IV_INSTANCEID TYPE /AWS1/OWXSTRING /AWS1/OWXSTRING

The instance ID.

Optional arguments:

IV_DELETEELASTICIP TYPE /AWS1/OWXBOOLEAN /AWS1/OWXBOOLEAN

Whether to delete the instance Elastic IP address.

IV_DELETEVOLUMES TYPE /AWS1/OWXBOOLEAN /AWS1/OWXBOOLEAN

Whether to delete the instance's Amazon EBS volumes.