[#BloombergLP-bdlmt-MultiQueueThreadPool-deleteQueue-0a]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlmt.adoc[bdlmt]::xref:BloombergLP/bdlmt/MultiQueueThreadPool.adoc[MultiQueueThreadPool]::deleteQueue
:relfileprefix: ../../../
:mrdocs:

Disable enqueuing to the queue associated with the specified `id`, and when the currently executing job (or batch of jobs) of that queue, if any, is complete, then destroy the queue&period; Return 0 on success, and a non&hyphen;zero value otherwise&period; This function will fail if the pool is stopped&period; Any other (non&hyphen;executing) jobs on the queue are deleted asynchronously&period; The calling thread blocks until completion of the currently executing job (or batch of jobs), except when `deleteQueue` is called from a job in the queue being deleted&period; In that latter case, no block takes place, the queue is deleted (no longer observable from the `MultiQueueThreadPool`), and the job completes&period;

== Synopsis

Declared in `&lt;bdlmt&lowbar;multiqueuethreadpool&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
deleteQueue(int id);
----


[.small]#Created with https://www.mrdocs.com[MrDocs]#
