> ## Documentation Index
> Fetch the complete documentation index at: https://docs.rebellapp.com/llms.txt
> Use this file to discover all available pages before exploring further.

# my.offDeviceMotionChange

> Stop listening for device orientation change events.

Use this API to remove listeners registered with `my.onDeviceMotionChange`.

## Parameters

| Type | Required | Description |
| - | - | - |
| Function listener | No | The listener passed to `my.onDeviceMotionChange`. If omitted, all listeners are removed |

## Code Example

```javascript theme={null}
// Remove a specific listener
my.offDeviceMotionChange(this.onMotion);

// Remove all listeners
my.offDeviceMotionChange();
```

## Related APIs

> [card] [my.onDeviceMotionChange](https://docs.rebellapp.com/jsapi/device/device-motion/my.onDeviceMotionChange.md)
>
> Listen for orientation changes

> [card] [my.stopDeviceMotionListening](https://docs.rebellapp.com/jsapi/device/device-motion/my.stopDeviceMotionListening.md)
>
> Stop listening


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.