You are currently browsing legacy 3.5 version of documentation. Click here to switch to the newest 5.2 version.

We can help you with migration to the latest RavenDB

Contact Us Now
see on GitHub

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);

void delete(long id, String database);
id long Subscription identifier.
database string Name of database to create a data subscription. If null, default database configured in DocumentStore will be used.