Delete thread
Delete a thread from a repository.
Endpoints
DELETE /api/v1/teams/{team_slug}/repos/{repo_slug}/threads/{number}
DELETE /api/v1/users/{username}/repos/{repo_slug}/threads/{number}
Authenticated
Usage
curl \
--request DELETE \
--header "Authorization: Bearer $GHIT_API_TOKEN" \
"$GHIT_API_URL/v1/teams/ghit/repos/ghit/threads/42"
Success
204 No Content. The thread is deleted and will no longer appear in listings or be accessible via get endpoints.
Errors
403 Forbiddenwhen the caller is not the thread author or a team member.404 Not Foundwhen the repo or thread does not exist, or the thread is already deleted.
Common auth errors are documented on the API overview page.