LogoFreestyle
API Reference/Git

Delete a repository

Delete a repository. This is irreversible, and will also delete the repository on the Git server.

DELETE
/git/v1/repo/{repo}

Path Parameters

repoRequiredstring

The repository id

Response Body

200

Repository deleted successfully

responseRequiredobject

403

Error: Forbidden

errorRequiredstring

Error code in SCREAMING_SNAKE_CASE

messageRequiredstring

Human-readable error message

404

Error: RepoNotFound

errorRequiredstring

Error code in SCREAMING_SNAKE_CASE

messageRequiredstring

Human-readable error message

500

Error: Internal

errorRequiredstring

Error code in SCREAMING_SNAKE_CASE

messageRequiredstring

Human-readable error message

curl -X DELETE "https://api.freestyle.sh/git/v1/repo/<string>"

Repository deleted successfully

{}

Freestyle AI

Documentation assistant

Experimental: AI responses may not always be accurate—please verify important details with the official documentation.

How can I help?

Ask me about Freestyle while you browse the docs.