Azure / Azure/azure-cli

Documentation for "az vm delete --force-deletion" is incorrect

Open
#25,352 2 comments 4 reactions 1 assignee Claimed by @zhoxing-ms View on GitHub
act-observability-squad Auto-Assign Azure CLI Team Compute feature-request
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

The CLI command for force-deletion does not work.
Example given:
az vm delete
--resource-group myResourceGroup
--name myVM
--force-deletion

This gives an error:
argument --force-deletion: expected one argument

This command works:
az vm delete
--resource-group myResourceGroup
--name myVM
--force-deletion none

---
#### Document Details

⚠ *Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.*

* ID: 152b549b-d4b3-13e5-081c-c604b6e4d89e
* Version Independent ID: 3f79be78-ce75-ad31-304b-bad7d475ec9e
* Content: [az vm](https://learn.microsoft.com/en-us/cli/azure/vm?view=azure-cli-latest#az-vm-delete&preserve-view=true)
* Content Source: [latest/docs-ref-autogen/vm.yml](https://github.com/MicrosoftDocs/azure-docs-cli/blob/main/latest/docs-ref-autogen/vm.yml)
* Service: **virtual-machines**
* GitHub Login: @rloutlaw
* Microsoft Alias: **routlaw**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.