Skip to content

Delete an app authorization

DELETE
/applications/{client_id}/grant

OAuth and GitHub application owners can revoke a grant for their application and a specific user. You must provide a valid OAuth access_token as an input parameter and the grant for the token’s owner will be deleted. Deleting an application’s grant will also delete all OAuth tokens associated with the application for the user. Once deleted, the application will have no access to the user’s account and will no longer be listed on the application authorizations settings screen within GitHub.

API method documentation

client_id
required
string

The client ID of the GitHub app.

Examples
Example default
Iv1.8a61f9b3a7aba766
Media type application/json
object
access_token
required

The OAuth access token used to authenticate to the GitHub API.

string
Examples
Example default
{
"access_token": "e72e16c7e42f292c6912e7710c838347ae178b4a"
}

Response

Validation failed, or the endpoint has been spammed.

Media type application/json
Validation Error

Validation Error

object
message
required
string
documentation_url
required
string
errors
Array<object>
object
resource
string
field
string
message
string
code
required
string
index
integer
value
One of:
string
nullable
Example generated
{
"message": "example",
"documentation_url": "example",
"errors": [
{
"resource": "example",
"field": "example",
"message": "example",
"code": "example",
"index": 1,
"value": [
"example"
]
}
]
}