DELETE
github_repos_delete_file.py
from charter.packs import github
result = await github.repos_delete_file.ainvoke({"owner": ..., "repo": ..., "path": ..., "message": ..., "sha": ...})
Requires
repo, read:user.Path parameters
| 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. |
path * | string | Path to the file, relative to the repository root. |
Body
| Field | Type | Description |
|---|---|---|
message * | string | The commit message. |
sha * | string | The blob SHA of the file being deleted. |
branch | string | The branch name. Absent, the repository’s default branch. |
committer | CommitIdentity | Who made the commit. Absent, the authenticated user. |
author | CommitIdentity | Who wrote the change, if not the committer. |