Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Delete a Repository Secret Using GitHub REST API

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

import getpass
import requests
token = getpass.getpass()
requests.delete(
    url="https://api.github.com/repos/legendu-net/docker-jupyterhub/actions/secrets/GITHUBACTIONS",
    headers={"Authorization": f"token {token}"},
)
<Response [204]>