Skip to content

@graphty/graphty-element / session / removeAutosave

Function: removeAutosave() ​

removeAutosave(key, id, options?): Promise<void>

Defined in: graphty-element/src/autosave/elementAutosave.ts:871

Delete an entry of an autosave key that no element is writing, without an element: the reader declined to reopen it.

Parameters ​

key ​

string

The autosave key.

id ​

string

The entry.

options? ​

AutosaveLookupOptions = {}

Where to look.

Returns ​

Promise<void>

Settles once the entry is deleted.

Throws ​

A GraphtyError (as a rejection): E_AUTOSAVE_UNKNOWN_ENTRY or E_AUTOSAVE_ENTRY_TAKEN.