Skip to main content

Delete a GitHub repository.

DELETE/api/v1/github-repositories/{github_repository_id}connectors:write

Hard delete of the repository with its branch mappings and sync runs. 409 in_use while an active workflow template's latest version or an open workflow uses it (list_github_repository_removal_blockers names them).

Scopeconnectors:write (sensitive)
AsynchronousNo
MCP tooldelete_github_repository
Portal permissionsdelete_github_repository_mappings

Parameters​

NameInTypeRequiredDescription
github_repository_idpathstringRequired
Docwize-Versionheaderstring (date)Optional
If-MatchheaderstringOptional

Responses​

StatusDescriptionBody
204Done.
400invalid_versionapplication/problem+json Problem
401token_expired, unauthenticatedapplication/problem+json Problem
403forbidden, insufficient_scope, token_owner_inactiveapplication/problem+json Problem
404not_foundapplication/problem+json Problem
405method_not_allowedapplication/problem+json Problem
406not_acceptableapplication/problem+json Problem
409in_useapplication/problem+json Problem
412precondition_failedapplication/problem+json Problem
421wrong_regionapplication/problem+json Problem
422validation_failedapplication/problem+json Problem
500internal_errorapplication/problem+json Problem
503tenant_unavailable, unavailableapplication/problem+json Problem
504timeoutapplication/problem+json Problem

Errors​

The problem codes this operation can answer with. Each code links to its page.