Skip to content

Instantly share code, notes, and snippets.

@Ninjanaut
Last active October 21, 2021 11:15
Show Gist options
  • Save Ninjanaut/449fff96b4cf143b91474d6ade871caf to your computer and use it in GitHub Desktop.
Save Ninjanaut/449fff96b4cf143b91474d6ade871caf to your computer and use it in GitHub Desktop.
Delete AzureDevOps provisioned wiki pages

install Azure CLI

https://docs.microsoft.com/en-us/cli/azure/install-azure-cli

install devops extension

az extension add --name azure-devops

move to local project (the remote will be taken from .git directory)

cd C:\...\Workspaces\DevOps\ProjectName

auth

az login

get repository ID from id attribute (wiki has its own repo)

az devops wiki list

delete wiki

az repos delete --id af610cde-6c7c-40ba-8f59-d04b0f1ca51b

open AzureDevOps WIKI and select "publish as a code" option

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment