Remove selected repository from an organization secret

Removes a repository from an organization secret when the visibility for repository access is set to selected. The visibility is set when you Create or update an organization secret. You must authenticate using an access token with the admin:org scope to use this endpoint. GitHub Apps must have the secrets organization permission to use this endpoint.

DELETE /orgs/:org/actions/secrets/:secret_name/repositories/:repository_id

Response when repository was removed from the selected list

Status: 204 No Content

Response when visibility type not set to selected

Status: 409 Conflict