--- title: "Remove OAuth Service (Realtime)" slug: "remove-oauth-service-realtime" updated: 2026-05-18T14:33:31Z published: 2026-05-18T14:33:31Z canonical: "developer.rocket.chat/remove-oauth-service-realtime" stale: true --- > ## Documentation Index > Fetch the complete documentation index at: https://developer.rocket.chat/llms.txt > Use this file to discover all available pages before exploring further. # Remove OAuth Service (Realtime) ![](https://cdn.us.document360.io/27ca1fd4-36d7-4cde-b4eb-97fc1652954c/Images/Documentation/Deprecated.svg) Remove an [OAuth service](https://docs.rocket.chat/v1/docs/oauth). | Method | Requires Auth | Permission | | --- | --- | --- | | `removeOAuthService` | Yes | `add-oauth-service` | ## Payload parameters | Argument | Example | Required | Description | | --- | --- | --- | --- | | `name` | `okta` | Required | The name of the OAuth service you want to remove. | ## Example call ```json {    "msg": "method",    "method": "removeOAuthService",    "id": "2",    "params": [        "Zapier"    ] } ``` ## Example response ### Success ```json {    "msg": "result",    "id": "2" } ``` ### Error Any of the following errors can occur on the endpoint. - **No Permission**: Occurs when the authenticated user doesn't have the `add-oauth-service` permission. ```json {    "msg": "result",    "id": "2",    "error": {        "isClientSafe": true,        "error": "error-not-allowed",        "reason": "Not allowed",        "details": {            "method": "removeOAuthService"        },        "message": "Not allowed [error-not-allowed]",        "errorType": "Meteor.Error"    } } ```