---
title: "Revoke a specific authentication session."
method: DELETE
path: "/api/v1/user/me/sessions/{session_id}"
---

# Revoke a specific authentication session.

`DELETE /api/v1/user/me/sessions/{session_id}`

**Authentication**: JWT token required
**Access**: Users can only revoke their own sessions
**Purpose**: Selective session termination for security

**Path Parameters**:
- `session_id`: Session identifier to revoke

**Request**: No request body required

**Success Response Schema**:
```json
{
  "message": "Session revoked successfully"
}
```

**Revocation Process**:
- Validates session belongs to current user
- Invalidates the specified session token
- Removes session from active sessions list
- Logs revocation event for security audit

**Use Cases**:
- Log out from specific device while staying logged in on others
- Security response to suspicious session activity
- Remote device management (e.g., lost phone)
- Granular session control

**Security Features**:
- Users can only revoke their own sessions (privacy protection)
- Immediate token invalidation
- Audit logging for security monitoring
- No impact on other active sessions

**Session Identification**:
- Use `GET /user/me/sessions` to list sessions and get session IDs
- Sessions are identified by unique session identifiers
- Current session can be revoked (will require re-authentication)

**Error Responses**:
- `401 Unauthorized`: JWT token required
- `404 Not Found`: Session not found or doesn't belong to user
- `500 Internal Server Error`: Failed to revoke session

## Path parameters

- `session_id` string, required

## Response `200`

Success

- object

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `500` — Internal Server Error

---

[API](https://skmtc.dev/trends/apis/trends-earth-api.md) · [All operations](https://skmtc.dev/trends/apis/trends-earth-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/trends/trends-earth-api/revisions/6bdbc0b84666/schema)
