Table of Contents

Method DisconnectAndClear

Namespace
PowerSync.Common.Client
Assembly
PowerSync.Common.dll

DisconnectAndClear(bool)

Disconnect and clear the database. Use this when logging out. The database can still be queried after this is called, but the tables would be empty.

To preserve data in local-only tables, set clearLocal to false.

public Task DisconnectAndClear(bool clearLocal = true)

Parameters

clearLocal bool

Returns

Task