Deletes an exchange.
Operation description
Usage notes
-
You cannot delete exchanges with the type headers.
-
You cannot delete the three built-in exchanges in a vhost: amq.direct, amq.topic, or amq.fanout.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
amqp:DeleteExchange |
delete |
*Exchange
|
None |
|
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The ID of the ApsaraMQ for RabbitMQ instance that contains the exchange. |
amqp-cn-v0h1kb9nu*** |
| VirtualHost |
string |
Yes |
The name of the vhost that contains the exchange. |
test |
| ExchangeName |
string |
Yes |
The name of the exchange to delete. |
DemoExchange |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
6961FFB8-6358-4EDC-9E3C-4A0C56CE6*** |
Examples
Success response
JSON format
{
"RequestId": "6961FFB8-6358-4EDC-9E3C-4A0C56CE6***"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.