delete

delete: (arg: PreferenceKeyArg & ITwinIdArg & TokenArg) => Promise<void>

Deletes the specified preference by key, if it exists, within the level provided.

If both iTwinId and iModelId are provided, the key will be deleted from both levels.

If the key does not exist in either level provided, then this function will do nothing.

@throws if any error occurs when deleting the preference.

Defined in

Last Updated: 14 November, 2024