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

# Revoke a WebSocket secret

> Permanently revokes a WebSocket secret and terminates any live socket currently authenticated with it. The caller may only revoke secrets they own. Returns 204 No Content on success. Requires a Nevermined API key. Requires active organization membership. Requires the organization to be on the Enterprise tier.



## OpenAPI

````yaml /api-reference/organizations-openapi.json delete /organizations/{orgId}/realtime/secrets/{id}
openapi: 3.0.0
info:
  title: Nevermined Organizations API
  description: >-
    Manage a Nevermined organization programmatically — members, tiers, groups &
    budgets, treasury wallets, customers, webhooks, analytics, and
    agent-discovery surfaces.
  version: 1.0.0
  contact: {}
servers:
  - url: https://api.sandbox.nevermined.app/api/v1
    description: Sandbox
  - url: https://api.live.nevermined.app/api/v1
    description: Live
security: []
tags:
  - name: Organizations
    x-group: General
    description: Organization settings, members & roles, and workspace context.
  - name: Organizations - Billing
    x-group: Billing
    description: Tiers, subscriptions, invoices, checkout, and the public tier catalog.
  - name: Groups
    x-group: Groups & Budgets
    description: Organization groups, per-group budgets, and shared payment methods.
  - name: Organizations - Wallets
    x-group: Wallets
    description: Custodial stablecoin treasury wallets.
  - name: Organizations - Customers
    x-group: Customers
    description: The white-label customer CRM (Enterprise).
  - name: Organizations - Analytics
    x-group: Analytics
    description: Revenue, MRR, usage, conversion, and per-member metrics.
  - name: Organizations - Webhooks
    x-group: Webhooks
    description: Outbound webhook subscriptions and deliveries.
  - name: Organizations - Activity
    x-group: Activity
    description: The organization activity feed.
  - name: Organizations - Realtime
    x-group: Realtime
    description: Realtime WebSocket secret management (Enterprise).
  - name: Invitations
    x-group: Invitations
    description: Invite people to an organization.
  - name: Organizations - Integration
    x-group: Agent Discovery
    description: >-
      Public agent-discovery surfaces (llms.txt, agentic-instructions.md,
      ai-catalog.json).
paths:
  /organizations/{orgId}/realtime/secrets/{id}:
    delete:
      tags:
        - Organizations - Realtime
      summary: Revoke a WebSocket secret
      description: >-
        Permanently revokes a WebSocket secret and terminates any live socket
        currently authenticated with it. The caller may only revoke secrets they
        own. Returns 204 No Content on success. Requires a Nevermined API key.
        Requires active organization membership. Requires the organization to be
        on the Enterprise tier.
      operationId: RealtimeSecretsController_revoke
      parameters:
        - name: orgId
          required: true
          in: path
          description: Organization ID
          schema:
            type: string
            example: org-abc123
        - name: id
          required: true
          in: path
          description: Identifier of the WebSocket secret to revoke
          schema:
            example: rts-3f2b8c1d
            type: string
      responses:
        '204':
          description: Secret revoked; no response body
        '401':
          description: Missing or invalid Nevermined API key
        '403':
          description: >-
            Caller is not a member of the organization, or the org is not on the
            Enterprise tier
        '404':
          description: Secret not found or not owned by the caller
      security:
        - Authorization: []
components:
  securitySchemes:
    Authorization:
      scheme: bearer
      bearerFormat: JWT
      type: http

````

## Related topics

- [Generate a WebSocket secret](/docs/api-reference/organizations--realtime/generate-a-websocket-secret.md)
- [Rotate a WebSocket secret](/docs/api-reference/organizations--realtime/rotate-a-websocket-secret.md)
- [List the caller's own WebSocket secrets](/docs/api-reference/organizations--realtime/list-the-callers-own-websocket-secrets.md)
- [Activity & Events](/docs/solutions/organizations/activity-and-events.md)
- [API error codes](/docs/development-guide/api-errors/codes.md)
