v56

latestOpenAPI 3.0.3MITraw.githubusercontent.com2026-08-011,4581,08113.3 MB
apps

Remove repository access from an organization installation

Remove repository access from a GitHub App installed on an organization. You can remove up to 50 repositories at a time. You cannot remove repositories from an app installed on all repositories, nor can you remove the last repository for an app. If you attempt to do so, the API will return a 422 Unprocessable Entity error.

This API can only be called by a GitHub App installed on the enterprise that owns the organization.

patch/enterprises/{enterprise}/apps/organizations/{org}/installations/{installation_id}/repositories/remove

Path parameters

enterprisestring required

The slug version of the enterprise name.

orgstring required

The organization name. The name is not case sensitive.

installation_idinteger required

The unique identifier of the installation.

Request body

repositoriesstring[] required

The repository names to remove from the installation.

Response

A list of repositories which the authenticated GitHub App has lost access to.

idinteger required

Unique identifier of the repository

namestring required

The name of the repository.

full_namestring required

Example response

[
  {
    "id": 1,
    "name": "Team Environment",
    "full_name": "octocat/Hello-World"
  }
]