DELETE/orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}

Remove a repository from an organization secret

Removes a repository from an organization secret's selected repository list. Use this operation when the secret's visibility is set to selected; the authenticated user must have collaborator access to the repository. OAuth app tokens and personal access tokens (classic) need the admin:org scope, plus the repo scope for private repositories.

3 parameters
orgstringrequired
The organization name. The name is not case sensitive.
secret_namestringrequired
The name of the organization secret.
repository_idintegerrequired
The unique numeric identifier of the repository to remove.

2 status codes
204Returns no content after the repository is removed from the selected list for the organization secret.
409Returned when the secret's repository access visibility is not set to `selected`.

Error handling

A 409 is returned when the secret's repository visibility is not set to selected. The org path parameter must identify the organization, secret_name the secret, and repository_id the repository; the authenticated user needs collaborator access, and OAuth app tokens or personal access tokens (classic) need admin:org plus repo for private repositories.