Delete OAuth Provider
Permanently remove an OAuth provider from an endpoint. Active sessions established via this provider remain valid until expiry — the platform doesn't currently force-revoke them when the provider is removed. New logins via this provider stop working immediately.
If you want to keep the configuration but stop offering it on the login page, use PUT /v1/toggle instead.
Path parameters
endpoint_id string (uuid) Req
Endpoint UUID.
provider_id int64 Req
Numeric provider ID.
Response (204 No Content)
Empty body on success.
Errors
401 Unauthorized
Missing auth.
403 Forbidden
Caller lacks the
endpoints:delete permission in the active account.404 Not Found
Endpoint doesn't belong to the calling account, or provider not found / not on this endpoint.
Request
curl -X DELETE "https://api.ngris.com/v1/endpoints/<uuid>/oauth/providers/1" \
-H "X-API-KEY: <your_api_key>"
Python
from ngris import Ngris
client = Ngris(api_key="<your_api_key>")
client.endpoint_oauth.delete_provider("<endpoint_uuid>", "1")
Response — 204 No Content