Skip to main content
POST

Overview

Remove a specific connection for a specified user, used for cleaning up invalid connections or managing user connection states.

Request Body

Required Parameters

string
required
User ID
integer
required
Connection ID

Optional Parameters

integer
Node ID, specifies connection on a specific node

Response Fields

string
required
Operation status, returns "ok" on success

Status Codes

Use Cases

Connection Cleanup

Remove Stale Connections:
Batch Connection Cleanup:

Connection Management

Manage User Connection Limits:

Security Management

Remove Suspicious Connections:

Node Maintenance

Node-specific Connection Cleanup:

Monitoring and Diagnostics

Connection Health Monitoring:

Administrative Operations

Admin Connection Management:

Best Practices

  1. Permission Verification: Ensure proper authorization before removing connections
  2. Logging: Log all connection removals for audit and debugging purposes
  3. Graceful Handling: Handle connection removal errors gracefully
  4. Batch Operations: Use batch operations for better performance when removing multiple connections
  5. Monitoring: Implement monitoring to detect and remove unhealthy connections
  6. Security: Remove suspicious connections promptly to maintain system security
  7. Node Awareness: Consider node distribution when managing connections in clustered environments