[#BloombergLP-bdlcc-TimeQueue-091-remove-0af] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlcc.adoc[bdlcc]::xref:BloombergLP/bdlcc/TimeQueue-091.adoc[TimeQueue<function<void()>>]::remove :relfileprefix: ../../../ :mrdocs: Remove from this queue the item having the specified `handle`, and optionally load into the optionally specified `item` the time and data values of the recently removed item. Optionally use the specified `key` to uniquely identify the item. If specified, load into the optionally specified `newMinTime`, the resulting lowest time value remaining in the queue. Return 0 on success, and a non‐zero value if no item with the `handle` exists in the queue. Note that if `DATA` follows the `bdema` allocator model, the allocator of the `item` instance is used to supply memory. == Synopsis Declared in `<bdlcc_timequeue.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int remove( xref:BloombergLP/bdlcc/TimeQueue-09c/Handle.adoc[Handle] handle, int* newLength = 0, xref:BloombergLP/bsls/TimeInterval.adoc[bsls::TimeInterval]* newMinTime = 0, xref:BloombergLP/bdlcc/TimeQueueItem.adoc[TimeQueueItem<function<void()>>]* item = 0); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#