[#BloombergLP-balm-MetricsManager-removePublisher-099]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balm.adoc[balm]::xref:BloombergLP/balm/MetricsManager.adoc[MetricsManager]::removePublisher
:relfileprefix: ../../../
:mrdocs:

`removePublisher` overloads

== Synopses

Declared in `&lt;balm&lowbar;metricsmanager&period;h&gt;`

Same as the preceding overload, accepting a shared pointer&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
xref:BloombergLP/balm/MetricsManager/removePublisher-02.adoc[removePublisher](xref:bsl/shared_ptr-0a.adoc[bsl::shared&lowbar;ptr&lt;Publisher&gt;] const& publisher);
----

[.small]#xref:BloombergLP/balm/MetricsManager/removePublisher-02.adoc[_» more&period;&period;&period;_]#

Stop publishing metrics to the specified `publisher` and remove it&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
xref:BloombergLP/balm/MetricsManager/removePublisher-095.adoc[removePublisher](xref:BloombergLP/balm/Publisher.adoc[Publisher] const* publisher);
----

[.small]#xref:BloombergLP/balm/MetricsManager/removePublisher-095.adoc[_» more&period;&period;&period;_]#

== Return Value

0 on success, and a non&hyphen;zero value if `publisher` cannot be found

== Parameters

[cols="1,4"]
|===
| Name| Description
| *publisher*
| publisher to remove from this metrics manager
|===


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