[#BloombergLP-bdlcc-Cache-erase] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlcc.adoc[bdlcc]::xref:BloombergLP/bdlcc/Cache.adoc[Cache]::erase :relfileprefix: ../../../ :mrdocs: Remove the item having the specified `key` from this cache. Invoke the post‐eviction callback for the removed item. Return 0 on success and 1 if `key` does not exist. == Synopsis Declared in `<bdlcc_cache.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int erase(KEY const& key); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#