---
name: "offOfflineDpsUpdate"
mode: "api"
versionRequirements:
  - { name: "@ray-js/lock-sdk", version: "1.1.0" }
title: "offOfflineDpsUpdate - Remove the offline DP update listener."
summary: "Pass the same callback reference used with onOfflineDpsUpdate."
---

## offOfflineDpsUpdate

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

### Description

Unregister the offline DP update listener

### Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `callback` | `(dps: OfflineDps) => void` | Yes | The same reference as used when subscribing |

### Return Value

None


### Referenced Types

##### `interface` OfflineDps

```typescript
export interface OfflineDps {
  [code: string]: OfflineDpInfo;
}
```


### Examples

#### Example

```ts
import { offOfflineDpsUpdate } from '@ray-js/lock-sdk';
offOfflineDpsUpdate((dps) => {
  console.log('Offline DP update', dps);
});
```
