DELETE
/orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}Remove a repository from an organization secret
Removes a repository from the selected-repository list for an organization secret. Use this operation only when the secret's visibility is set to selected, and provide the organization's secret name and repository identifier. OAuth app tokens and personal access tokens (classic) require the admin:org scope.
- RetriesRetries up to 2×, 500ms backoff, 30s timeout.
orgstringrequired
The organization name. The value is not case-sensitive.
secret_namestringrequired
The name of the organization secret to update.
repository_idintegerrequired
The numeric identifier of the repository to remove from the selected list.
204Returns no content after removing the repository from the secret's selected-repository list.
409Returned when the organization secret's visibility type is not set to `selected`.
Error handling
A 409 is returned when the organization secret's visibility is not set to selected. org, secret_name, and repository_id must identify the target organization secret and repository, and OAuth app tokens or personal access tokens (classic) must have the admin:org scope.