discardChanges Method @preview
Permanently discards any local changes made to this briefcase, reverting the briefcase to its last synchronized state.
This operation cannot be undone. By default, all locks held by this briefcase will be released unless the retainLocks option is specified.
discardChanges(args?: { retainLocks?: "true" }): Promise<void>
@returns A promise that resolves when the operation is complete.
@throws May throw if discarding changes fails.
| Parameter | Type | Description |
|---|---|---|
| args | { retainLocks?: "true" } | Options for discarding changes. |
Returns - Promise
A promise that resolves when the operation is complete.
Defined in
- core/backend/src/IModelDb.ts Line 3140
Last Updated: 15 November, 2025
Found something wrong, missing, or unclear on this page? Raise an issue in our repo.