Skip to main content

How to delete a data subscription?

#How to delete a data subscription?

The data subscription is never deleted unless you explicitly drop it. This is the method to do it:

//	void Delete(long id, string database = null);
//
Parameters
idlongSubscription identifier.
databasestringName of database to create a data subscription. If null, default database configured in DocumentStore will be used.
//	store.Subscriptions.Delete(id);
//