> ## Documentation Index
> Fetch the complete documentation index at: https://docs.diga.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Revoke a single session

> Revoke a single session owned by the caller.

The session's refresh token dies immediately (it can never renew), but its
already-issued access token stays valid until it expires (GoTrue
JWT_EXPIRY, ~1h) — revocation is not instant. PRO-838 tracks per-request
session validation for immediate revocation.



## OpenAPI

````yaml /api-reference/openapi.json delete /v1/profile/security/sessions/{session_id}
openapi: 3.1.0
info:
  title: Diga API
  version: 0.1.0
servers:
  - url: https://api.diga.io
    description: Production
security: []
paths:
  /v1/profile/security/sessions/{session_id}:
    delete:
      tags:
        - Security
      summary: Revoke a single session
      description: >-
        Revoke a single session owned by the caller.


        The session's refresh token dies immediately (it can never renew), but
        its

        already-issued access token stays valid until it expires (GoTrue

        JWT_EXPIRY, ~1h) — revocation is not instant. PRO-838 tracks per-request

        session validation for immediate revocation.
      operationId: revoke_session_v1_profile_security_sessions__session_id__delete
      parameters:
        - name: session_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Session ID
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RevokeResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - CustomHTTPBearer: []
components:
  schemas:
    RevokeResponse:
      properties:
        revoked:
          type: integer
          title: Revoked
          description: Number of sessions revoked
      type: object
      required:
        - revoked
      title: RevokeResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    CustomHTTPBearer:
      type: http
      scheme: bearer

````