clear-backlog

Delete messages in a backlog.

Use this command to delete all backlogged messages for a specified namespace.

Synopsis

clear-backlog <namespace> [Namespace Options]

clear-backlog namespace

clear-backlog namespace <Namespace> [bundle <StartBoundry_EndBoundry>|subscription <SubscriptionName>]
Clear the message backlog for a specified namespace.
Examples:
The following command clears the backlog for NamespaceA within the specific bundle range:
/Instance> clear-backlog namespace /Instance/Cluster/Tenant/NamespaceA bundle 0x00000000_0x1234ffff
The following command clears the backlog for NamespaceA:
/Instance/Cluster/Tenant/NamespaceA> clear-backlog namespace . subscription sample-sub
The following command clears the backlog for the specific subscription using NamespaceA within the specific bundle range:
/Instance/Cluster/Tenant/NamespaceA> clear-backlog namespace . subscription sample-sub bundle 0x00000000_0x1234ffff