Skip to content

/AWS1/CL_EC2=>DELETESUBNET()

About DeleteSubnet

Deletes the specified subnet. You must terminate all running instances in the subnet before you can delete the subnet.

Method Signature

IMPORTING

Required arguments:

IV_SUBNETID TYPE /AWS1/EC2SUBNETID /AWS1/EC2SUBNETID

The ID of the subnet.

Optional arguments:

IV_DRYRUN TYPE /AWS1/EC2BOOLEAN /AWS1/EC2BOOLEAN

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.