Deletes an exchange.

Request parameters

ParameterTypeRequiredExampleDescription
ActionStringYesDeleteExchange

The operation that you want to perform.

Set the value to DeleteExchange.

ExchangeNameStringYesDemoExchange

The name of the exchange.

InstanceIdStringYesamqp-cn-v0h1kb9nu***

The ID of the instance.

RegionIdStringYescn-hangzhou

The ID of the region.

VirtualHostStringYestest

The name of the vhost.

Response parameters

ParameterTypeExampleDescription
RequestIdString6961FFB8-6358-4EDC-9E3C-4A0C56CE6***

The ID of the request.

Examples

Sample requests

http(s)://[Endpoint]/?Action=DeleteExchange
&ExchangeName=DemoExchange
&InstanceId=amqp-cn-v0h1kb9nu***
&RegionId=cn-hangzhou
&VirtualHost=test
&<Common request parameters>

Sample success responses

XML format

<DeleteExchangeResponse>
      <RequestId>6961FFB8-6358-4EDC-9E3C-4A0C56CE6***</RequestId>
</DeleteExchangeResponse>

JSON format

{
    "RequestId": "6961FFB8-6358-4EDC-9E3C-4A0C56CE6***"
}

Error codes

For a list of error codes, visit the API Error Center.