Delete file upload

Delete a repo-scoped file upload.

Endpoints

DELETE /api/v1/teams/{team_slug}/repos/{repo_slug}/uploads/{upload_uuid}
DELETE /api/v1/users/{username}/repos/{repo_slug}/uploads/{upload_uuid}
Authenticated Repo scoped

Example

curl --request DELETE \
  --header "Authorization: Bearer $GHIT_API_TOKEN" \
  "$GHIT_API_URL/v1/teams/platform/repos/website/uploads/a1b2c3d4-..."

Response

Returns `204 No Content`.

Errors

  • 403 Forbidden when the caller cannot delete the upload.
  • 404 Not Found when the repo or upload does not exist.