SqlCeSyncScopeDeprovisioning.DeprovisionScope Method

Deprovisions the specified scope by removing all associated synchronization elements from the database.

Namespace:  Microsoft.Synchronization.Data.SqlServerCe
Assembly:  Microsoft.Synchronization.Data.SqlServerCe (in Microsoft.Synchronization.Data.SqlServerCe.dll)

public void DeprovisionScope(
	string scopeName


Type: System.String
The name of the scope to deprovision.

Synchronization components are not removed from a database until all scopes that depend on them are deprovisioned. For example, when two scopes that contain the same table are present in a database, deprovisioning one of the scopes does not remove the metadata table for the table contained in the other scope. When the second scope is deprovisioned, the metadata table is removed.