[#BloombergLP-bslmt-ThreadUtil-deleteKey] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslmt.adoc[bslmt]::xref:BloombergLP/bslmt/ThreadUtil.adoc[ThreadUtil]::deleteKey :relfileprefix: ../../../ :mrdocs: Delete the specified `key` from the calling process, and disassociate all threads from the thread key cleanup function supplied when `key` was created (see `createKey`). Return 0 on success, and a non‐zero value otherwise. The behavior is undefined unless `key` was obtained from a successful call to `createKey` and has not already been deleted. Note that deleting a key does not delete any data referred to by the pointer values associated with that key in any thread. == Synopsis Declared in `<bslmt_threadutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static int deleteKey(xref:BloombergLP/bslmt/ThreadUtil/Key.adoc[Key]& key); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#