fitDeleteUnlockMethod(id: number, lockDevId?: string)

Requires:
@ray-js/lock-sdk≥1.2.0

Description

Delete an unlock method on the accessory side

Parameters

ParameterTypeRequiredDescription
idnumberYesCloud opModeId
lockDevIdstringNoTarget lock devId (can be omitted when only one lock is bound)

Return Value

Type: Promise<void>
None

Error Code

Error CodeError Message
1052Previous operation on the same accessory is still in progress
1014Deleting a dp is not supported / This dpCode is not supported
1001Device is offline
1002Operation timed out
1028Device reported deletion failure
1029Device reported deletion failure (admin password is in use)

Examples

import { fitDeleteUnlockMethod } from '@ray-js/lock-sdk';
await fitDeleteUnlockMethod(1001);