Remove a repository from an app installation
DELETE
/user/installations/{installation_id}/repositories/{repository_id}
Remove a single repository from an installation. The authenticated user must have admin access to the repository. The installation must have the repository_selection of selected.
This endpoint only works for PATs (classic) with the repo scope.
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ” installation_id
required
integer
The unique identifier of the installation.
Examples
Example default
1 repository_id
required
integer
The unique identifier of the repository.
Responses
Section titled “ Responses ”Response
Not modified
Forbidden
Media type application/json
Basic Error
Basic Error
object
message
string
documentation_url
string
url
string
status
string
Example generated
{ "message": "example", "documentation_url": "example", "url": "example", "status": "example"}Resource not found
Media type application/json
Basic Error
Basic Error
object
message
string
documentation_url
string
url
string
status
string
Example generated
{ "message": "example", "documentation_url": "example", "url": "example", "status": "example"}Returned when the application is installed on all repositories in the organization, or if this request would remove the last repository that the application has access to in the organization.