• Distributed Message Service

dms
  1. Help Center
  2. Distributed Message Service
  3. API Reference
  4. APIs for Managing Queues and Messages
  5. Deleting a Queue

Deleting a Queue

Function

This API is used to delete a specified queue.

URI

URI: DELETE /v1.0/{project_id}/queues/{queue_id}

Table 1 describes the parameters of this API.

Table 1 Parameter description

Parameter

Type

Mandatory or Not

Description

project_id

String

Yes

Indicates the ID of a project.

queue_id

String

Yes

Indicates the ID of the queue to be deleted.

Request

Request parameters

None.

Example request

None.

Response

Response parameters

None.

Example response

None.

Status Code

Table 2 lists the status code indicating that the operation is successful. For details about the status codes indicating that the operation fails, see Status Code.

Table 2 Status code

Status Code

Description

204

The queue is deleted successfully.