[#BloombergLP-balm-PublicationScheduler-cancelCategorySchedule-0f] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balm.adoc[balm]::xref:BloombergLP/balm/PublicationScheduler.adoc[PublicationScheduler]::cancelCategorySchedule :relfileprefix: ../../../ :mrdocs: Cancel the periodic publication of the specified `category`. Return 0 on success, and a non‐zero value if the `category` is not scheduled for publication. Any scheduled publication of `category` is either canceled or completed before this method returns. The behavior is undefined unless `category` is a valid address supplied by the `balm::MetricRegistry` owned by `metricsManager`. Note that if a default publication schedule has been set (using `setDefaultSchedule`), then `category` will continue to be published as part of that scheduled default publication; to exclude a category from any publication, clients can disable the category using the `MetricsManager` object supplied at construction. == Synopsis Declared in `<balm_publicationscheduler.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int cancelCategorySchedule(xref:BloombergLP/balm/Category.adoc[Category] const* category); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#