How do I delete published wiki? I would like keep the code wiki only.
⚠Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
Hi @yashkv1, Thanks for reaching out. First, unpublish the wiki. Please let me know if you need any further clarification and I'll be happy to provide. Thanks!
After unpublishing, I would like to set the code wiki as default. How should I do that?
@yashkv1, great question. I've added @adramasu for guidance please! Thank you!
Similar to @yashkv1, I would like to completely remove the Project Wiki (which was created in error) and use only Code Wikis. The Project Wiki is confusing to our users, despite training them to only use the Code Wikis we still have users that continue to create content in The Project Wiki. We also tried removing 'Read' permissions to solve this issue however users were presented with the message 'You don't have access to any wiki'.
Is there a way to 1) remove the Provisioned wiki and 2) make Publish code as wiki the default?
I found a solution. I have to try if this will work for deleting Provisioned wiki.
You cannot delete a provisioned wiki. However, you can delete the underlying repo of the wiki by following the steps in this document DELETE PROJECT WIKI.docx. This will in effect delete the provisioned wiki.
As for preventing the creation, you can deny "create repo" permission to users who should not create a provisioned wiki.
I've added the process for deleting a wiki repo, from the previous comment, to the article. The PR is complete, so it should be live within a few hours. Do let us know if you have any further questions!
I'm attempting to use this process in powershell using invoke-restmethod, but I'm getting an error indicating DELETE is not supported on the controller. Is there something I'm missing? Any chance of just updating the az devops CLI to not error out when attempting to delete a provisioned wiki?
Thanks for the reference info, posted here.
Following is the procedure I've used, successfully:
curl -vvv -u myuser@mydomain:token -k -X GET https://dev.azure.com/MY-ORGANIZATION/MY-PROJECT/_apis/wiki/wikis?api-version=5.0
curl -vvv -u myuser@mydomain:token -k -X DELETE https://dev.azure.com/MY-ORGANIZATION/MY-PROJECT/_apis/git/repositories/{repositoryId}?api-version=5.0
Perfect! Thanks for the assist here!
Most helpful comment
Thanks for the reference info, posted here.
Following is the procedure I've used, successfully:
Setup: Personal Access Token
Use: curl, to access the API
curl -vvv -u myuser@mydomain:token -k -X GET https://dev.azure.com/MY-ORGANIZATION/MY-PROJECT/_apis/wiki/wikis?api-version=5.0curl -vvv -u myuser@mydomain:token -k -X DELETE https://dev.azure.com/MY-ORGANIZATION/MY-PROJECT/_apis/git/repositories/{repositoryId}?api-version=5.0