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

Remove a repository from an organization secret

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

3 parameters
orgstringrequired
The organization name; it is not case-sensitive.
secret_namestringrequired
The name of the organization secret.
repository_idintegerrequired
The unique integer identifier of the repository to remove from the secret's selected repository list.

4 status codes
204Returns no content after removing the repository from the secret's selected repository list.
404Returned when the organization, secret, or repository resource cannot be found.
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional
409Returned when the secret's visibility is not set to `selected`.
422Returned when validation fails or the endpoint has been spammed.
messagestringrequired
documentation_urlstringrequired
errorsarray<object>optional

Error handling

A 404 is returned when the org path parameter, secret_name path parameter, or repository_id path parameter does not identify an available resource. A 409 is returned when the secret's visibility is not set to selected. A 422 is returned when validation fails or the endpoint has been spammed; OAuth app tokens and personal access tokens (classic) must have the admin:org scope.