WuKongIM Docs

Clear a user device token

Operation boundary

  • Caller: Protected operator boundary only
  • Scope: The handling node performs session closure after about 2 seconds; device_flag=-1 processes APP, Web, and PC sequentially.
  • Atomicity: Multi-device sign-out is not transactional; earlier device classes may be signed out before a later one fails.
  • Success: A missing target device still returns 200.
POST/user/device_quit

Clears one stored device token and schedules owner-local Session closure; device_flag -1 selects APP, Web, and PC.

Request Body

application/json

User and device category to sign out.

TypeScript Definitions

Use the request body type in TypeScript.

Device sign-out parameters with legacy weak validation.

Response Body

application/json

application/json

application/json

{  "status": 200}