---
name: "deleteUnlockMethod"
mode: "api"
versionRequirements:
  - { name: "@ray-js/lock-sdk", version: "1.0.0" }
title: "deleteUnlockMethod - Delete unlock method."
summary: "Delete unlock method."
---

## deleteUnlockMethod

> [VERSION] @ray-js/lock-sdk >= 1.0.0

### Description

Delete an unlocking method.

### Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | `number` | Yes | Record ID |

### Return Value

Type: `Promise<void>`

None (resolve after successful deletion)

### Error Codes

| Error Code | Error Message |
| --- | --- |
| `1052` | The previous operation on the same device has not completed |
| `1014` | The delete DP is not supported |
| `1001` | Device is offline |
| `1002` | Operation timed out |
| `1028` | Device reported deletion failure |
| `1029` | Device reported deletion failure (admin password is in use) |

### Examples

#### Example

```ts
import { deleteUnlockMethod } from '@ray-js/lock-sdk';
await deleteUnlockMethod({ id: 'method_001' });
```
