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

Remove a selected repository from an organization secret

Removes a repository from an organization secret's selected repository list. Use this operation when the secret's repository visibility is set to selected; OAuth app tokens and personal access tokens (classic) need the admin:org scope.

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

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

Error handling

A 409 is returned when the secret's visibility is not selected; configure it as selected when creating or updating the organization secret. The org path parameter names the organization, secret_name identifies the secret, and repository_id identifies the repository; OAuth app tokens and personal access tokens (classic) need the admin:org scope.