Delete the project WIKI in Azure DevOps with Azure CLI

Connect to Azure with Azure CLI

az login

Select the correct subscription

az account show
az account list
az account set --subscription <subscription id>

Use the Azure DevOps CLI extension

az extension add --name azure-devops

List the WIKI’s in your project

az devops wiki list
az devops wiki list --organization<your organization> --project "<project name>"
az devops wiki delete -wiki <wiki id> --organization <organization url> --project "<project name>"

Wiki delete operation is not supported on wikis of type ‘ProjectWiki’.

"id": "bb17a000-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"mappedPath": "/",
"name": "wiki.3991e018-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"projectId": "3991e018-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"properties": null,
"remoteUrl": "",
"repositoryId": "bb17a000-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"type": "projectWiki",
"url": "",
"versions": [{
"version": "wikiMaster",
"versionOptions": null,
"versionType": null

NOTE: really make sure you want to delete this repo. When it’s gone, it’s gone!

az repos delete --id <repositoryId> --organization <organization url> --project "<project name>"



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store