While creating a new Azure DevOps Server project, I accidently created a Project Wiki. Unfortunately there is no option yet to delete this wiki.
The trick is to use the REST api to delete the GIT repo that is used behind the scenes:
- First get the correct wiki git id through the following call:
- This will return all the wikis. From that we can get the repository Id of the particular wiki we need to delete.
- Now we can use another API to delete the correct git repo:
That’s it!
Remark: To be able to call this through a tool like POSTMAN, you need to create a PAT and include it in the Authorization header(Postman will do the base64 encoding for you) or use the NTLM support in POSTMAN.
Authorization: Basic PAT