SQL Flow Field Guide

DROP QUEUE

Catalog support for SQL Server 2022 (16.x) and 2025 (17.x)

removes queue (no row flow)

What changes

Input
catalog
Output or change
catalog: queue

Syntax at a glance

DROP QUEUE <object> [ ; ]

Work example

A Service Broker queue is removed after its messages are drained or archived.

Check queue depth, activation, service mapping, conversation state, and message retention.

Check your work No service uses the queue and required messages have a recorded disposition.

Open Microsoft Learn for full syntax, permissions, and details for your version.