# IRPCLogin.DisconnectDevice

Location: [gRPC API](https://developer.m-files.com/APIs/gRPC-API/index.md) > [Vault API](https://developer.m-files.com/APIs/gRPC-API/vault/index.md) > [Login and sessions](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCLogin/index.md)

HTML version: https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCLogin/DisconnectDevice/

Badges: `Vault API / core` `session` `session`

Removes a device registration (device token) of the logged-in user in the session's vault.

- **Service:** [Login and sessions](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCLogin/index.md) `MFiles.IRPCLogin`
- **gRPC method:** `/MFiles.IRPCLogin/DisconnectDevice`
- **HTTP (mf-http-grpc):** `POST /grpc/v1/disconnect-device`
- **Request:** [`DisconnectDeviceRequest`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCLogin/DisconnectDevice/index.md#request)
- **Response:** [`DisconnectDeviceResponse`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCLogin/DisconnectDevice/index.md#response)
- **Book and level:** Vault API, core
- **Kind:** session
- **Session:** Required: the session ID from LogIn in the mfiles-session-id-bin metadata.
- **Idempotent:** no
- **Returns metadata structure version:** no
- **Streaming:** none (unary)

<a id="remarks"></a>

## Remarks

Used by M-Files clients that register a device token through `EnvironmentData.device_token` at
login; applications rarely need it. Requires a vault session.

<a id="request"></a>

## Request: DisconnectDeviceRequest

> Nested message fields are expanded to depth 3; follow a type link for deeper levels and for the type's own page.

| Field | Type | Description |
|---|---|---|
| `device_token` | `string` | The device token of the device to be disconnected from the server. |

<a id="response"></a>

## Response: DisconnectDeviceResponse

No fields.
