Deletes a binding to unbind a queue or an exchange from a source exchange.

Request parameters

ParameterTypeRequiredExampleDescription
ActionStringYesDeleteBinding

The operation that you want to perform. Set the value to

DeleteBinding.

BindingKeyStringYes.test.

The binding key.

BindingTypeStringYesQUEUE

The type of the object that you want to unbind from the source exchange. Valid values:

  • QUEUE
  • EXCHANGE
DestinationNameStringYesDemoQueue

The name of the object that you want to unbind from the source exchange.

InstanceIdStringYesamqp-cn-v0h1kb9nu***

The ID of the Message Queue for RabbitMQ instance.

SourceExchangeStringYesNormalEX

The name of the source exchange.

VirtualHostStringYestest

The name of the vhost.

Response parameters

ParameterTypeExampleDescription
RequestIdString5A60DBD2-2D9D-40EC-BEBF-C86E88817***

The ID of the request.

Examples

Sample requests

http(s)://[Endpoint]/?Action=DeleteBinding
&BindingKey=.test.
&BindingType=QUEUE
&DestinationName=DemoQueue
&InstanceId=amqp-cn-v0h1kb9nu***
&SourceExchange=NormalEX
&VirtualHost=test
&<Common request parameters>|

Sample success responses

XML format

<DeleteBindingResponse>
      <RequestId>5A60DBD2-2D9D-40EC-BEBF-C86E88817***</RequestId>
</DeleteBindingResponse>

JSON format

{
    "RequestId":"5A60DBD2-2D9D-40EC-BEBF-C86E88817***"
}

Error codes

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