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.curl --location --request DELETE 'https://api.github.com/orgs//codespaces/secrets//repositories/'{}