A Microsoft SQL Server Compact 3.5 application can use the Replication object to drop an anonymous subscription and, optionally, delete the SQL Server Compact 3.5 database from the smart device.
SQL Server Compact 3.5 applications use the Replication object to programmatically drop a subscription and, optionally, delete the database smart device. The application does this by creating the Replication object, setting the appropriate Replication object properties, and then calling the DropSubscription method. The examples in this topic show how you do this.
Multiple Subscriptions and the DropSubscription Method
Because SQL Server Compact 3.5 supports synchronizing a single database with multiple publications, you must consider the effects of multiple subscriptions when you drop a subscription with the DropSubscription method, especially if you are using the DropSubscription method to delete the database.
If you are using the DropSubscription method on a database with multiple subscriptions, you must set the Publisher, Publication, and PublisherDatabase properties before calling the DropSubscription method.
For more information about dropping a subscription, see How to: Drop a Subscription (Programmatically).