[#BloombergLP-bdlm-MetricsRegistry-removeMetricsAdapter] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlm.adoc[bdlm]::xref:BloombergLP/bdlm/MetricsRegistry.adoc[MetricsRegistry]::removeMetricsAdapter :relfileprefix: ../../../ :mrdocs: If the specified `adapter` is the currently associated adapter, remove all registered metrics from it and disassociate with this registry. Return 0 on success, and a non‐zero value otherwise. Note that this operation takes an `adapter` to disambiguate multiple, potentially concurrent, calls to this method and `setMetricsAdapter`. == Synopsis Declared in `<bdlm_metricsregistry.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int removeMetricsAdapter(xref:BloombergLP/bdlm/MetricsAdapter.adoc[MetricsAdapter]* adapter); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#