apicheats.dev Cheat sheet Raw .md
DELETE

Try DELETE /repos/{owner}/{repo}/contents/{path} — GitHub API

GitHub playground

Delete a file

Credentials

Kept in this tab only. Requests go through apicheats.dev's same-origin proxy straight to api.github.com; the proxy stores and logs nothing about them.

Headers

Path

Body application/json

5 body fields
  • message · required · string — The commit message.
  • sha · required · string — The blob SHA of the file being deleted.
  • branch · optional · string — The branch name. Default: the repository’s default branch
  • committer · optional · object — object containing information about the committer.
  • author · optional · object — object containing information about the author.