# Disconnect (owner only) (https://docs-ecmrhub-v2.lucaspiera.com/docs/api/connections/revokeConnection)

## DELETE /functions/v1/connections/{connectionId}

Disconnect (owner only)

Revokes an API key, or disconnects an OAuth connection with its sessions and grant. Its pending approvals expire.

```json
{
  "operationId": "revokeConnection",
  "parameters": [
    {
      "in": "path",
      "name": "connectionId",
      "schema": {
        "type": "string",
        "format": "uuid"
      },
      "required": true
    }
  ],
  "responses": {
    "204": {
      "description": "Revoked"
    },
    "default": {
      "$ref": "#/components/responses/Problem"
    }
  }
}
```

Schemas referenced as `#/components/...` are in the full contract: https://docs-ecmrhub-v2.lucaspiera.com/openapi.json