---
name: "DMXRemoveInput"
section: "3"
platform: "linux"
package: "libdmx-dev"
version: "1:1.1.4-2"
release: "Debian 12 (Bookworm)"
platforms: ["linux"]
url: "https://new.carta.tech/DMXRemoveInput"
---

# DMXRemoveInput(3)

detach an input

## NAME

DMXRemoveInput - detach an input

## SYNOPSIS

**#include \<X11/extensions/dmxext.h\>**

```
Bool DMXRemoveInput(Display *dpy,
                    int id);
```

## DESCRIPTION

**DMXRemoveInput()** detaches the input device with *id*, and all associated inputs (e.g., if the *id* is a backend mouse, and a keyboard is also attached to the backend, then both devices will be detached).

## RETURN VALUE

**DMXRemoveInput()** returns **True** unless there is a protocol error.

**DMXRemoveInput()** can generate **BadValue** (if the *id* is not valid) and **BadAccess** (if the input has already been detached).

## SEE ALSO

[**DMXAddInput**(3)](/DMXAddInput/3.md), [**DMX**(3)](/DMX/3.md), [**Xdmx**(1)](/Xdmx/1.md)
