Charles' website

Deleting websites from Codeberg's git-pages server

This simple tutorial will help you delete a website on Codeberg Pages if the site was hosted using git-pages.

Creating the PAT

Create a personal access token on your Codeberg account, with user and repository set to read and write. Make sure to save this token.

Deleting the repository

Using curl, you can delete the repository:

curl -XDELETE -H "Forge-Authorization: token [TOKEN]" [WEBSITE]

Replace [TOKEN] with the token you created, and [WEBSITE] with the root URL of the website (not a page on the website).

That's all there is to it, however I'd recommend deleting that token you created.