DELETE
github_git_refs_delete.py
Requires
repo, read:user.Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Delete a branch or tag, by reference. heads/my-branch, without the refs/ prefix. GitHub refuses to delete the default branch.
from charter.packs import github
result = await github.git_refs_delete.ainvoke({"owner": ..., "repo": ..., "ref": ...})
repo, read:user.| Field | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the .git extension. The name is not case sensitive. |
ref * | string | The Git reference to delete, formatted as heads/BRANCH_NAME or tags/TAG_NAME. Without the refs/ prefix. |
Was this page helpful?