unregisterGeodatabaseWithSyncId method

Future<void> unregisterGeodatabaseWithSyncId(
  1. {required Guid syncId}
)

Unregisters a geodatabase from its source ArcGIS feature service using the geodatabases sync ID. This removes the services replica id.

This method is used to unregister a geodatabase from a service using the sync ID. This is commonly used to enable cleanup of the service after the local geodatabase has already been deleted. See Geodatabase.syncId. After unregistering a geodatabase it can no longer be synced back to the service. This operation is not related to GeodatabaseSyncTask.registerSyncEnabledGeodatabase, which is for registering copies of a sync-enabled geodatabase.

Parameters:

  • syncId — sync ID of geodatabase to unregister.

Return Value: Returns a task that will unregister a geodatabase, the task does not contain a return value. This task will fail if the unregister process is unsuccessful.

Implementation

Future<void> unregisterGeodatabaseWithSyncId({required Guid syncId}) {
  final taskHandle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore
        .RT_GeodatabaseSyncTask_unregisterGeodatabaseWithSyncIdAsync(
            _handle, syncId._handle, errorHandler);
  });
  return taskHandle.toFuture((_) {});
}