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

`deleteQueue` overloads

== Synopses

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

Delete the queue with the specified `id` after its current job finishes&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
xref:BloombergLP/bdlmt/MultiQueueThreadPool/deleteQueue-0a.adoc[deleteQueue](int id);
----

[.small]#xref:BloombergLP/bdlmt/MultiQueueThreadPool/deleteQueue-0a.adoc[_» more&period;&period;&period;_]#

Delete the queue with the specified `id`, running `cleanupFunctor` last&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
xref:BloombergLP/bdlmt/MultiQueueThreadPool/deleteQueue-01.adoc[deleteQueue](
    int id,
    xref:BloombergLP/bdlmt/MultiQueueThreadPool/CleanupFunctor.adoc[CleanupFunctor] const& cleanupFunctor);
----

[.small]#xref:BloombergLP/bdlmt/MultiQueueThreadPool/deleteQueue-01.adoc[_» more&period;&period;&period;_]#

== Return Value

0 on success, and a non&hyphen;zero value otherwise

== Parameters

[cols="1,4"]
|===
| Name| Description
| *id*
| queue identifier
| *cleanupFunctor*
| functor invoked immediately before queue deletion
|===


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