{% extends "docs/base.html" %} {% block docs_content %}
Delete a thread from a repository.
DELETE /api/v1/teams/{team_slug}/repos/{repo_slug}/threads/{number}
DELETE /api/v1/users/{username}/repos/{repo_slug}/threads/{number}
curl \
--request DELETE \
--header "Authorization: Bearer $PEARING_API_TOKEN" \
"$PEARING_API_URL/v1/teams/pearing/repos/pearing/threads/42"
204 No Content. The thread is deleted and will no longer appear in listings or be accessible via get endpoints.
403 Forbidden when the caller is not the thread author or a team member.404 Not Found when the repo or thread does not exist, or the thread is already deleted.Common auth errors are documented on the API overview page.