Skip to content

Commit 3597a0c

Browse files
committed
Clarifying section.
1 parent d920155 commit 3597a0c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

articles/storage/elastic-san/elastic-san-delete.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,19 +49,20 @@ Copy the script from [here](https://github.com/Azure-Samples/azure-elastic-san/b
4949

5050
You can delete your SAN by using the Azure portal, Azure PowerShell, or Azure CLI. If you delete a SAN or a volume group, the corresponding child resources are deleted along with it. The delete commands for each of the resource levels are below.
5151

52-
53-
The following commands delete your volumes. These commands use `ForceDelete false`, `-DeleteSnapshot false`, `--x-ms-force-delete false`, and `--x-ms-delete-snapshots false` parameters for PowerShell and CLI, respectively. If you set `ForceDelete` or `--x-ms-force-delete` to `true`, it causes volume deletion to succeed even if you have active iSCSI connections. If you set `-DeleteSnapshot` or `--x-ms-delete-snapshots` to `true`, it deletes all snapshots associated with the volume, and the volume itself.
54-
5552
### Delete a volume
5653

5754
# [PowerShell](#tab/azure-powershell)
5855

56+
The following command deletes a volume. If you set `ForceDelete` to `true`, then your volume is deleted even when there are active iSCSI connections. If you set `-DeleteSnapshot` to `true`, it deletes all snapshots associated with the volume, and the volume itself.
57+
5958
```azurepowershell
6059
Remove-AzElasticSanVolume -ResourceGroupName $resourceGroupName -ElasticSanName $sanName -VolumeGroupName $volumeGroupName -Name $volumeName -ForceDelete false -DeleteSnapshot false
6160
```
6261

6362
# [Azure CLI](#tab/azure-cli)
6463

64+
The following command deletes a volume. If you set `--x-ms-force-delete` to `true`, then your volume is deleted even when there are active iSCSI connections.. If you set `--x-ms-delete-snapshots` to `true`, it deletes all snapshots associated with the volume, and the volume itself.
65+
6566
```azurecli
6667
az elastic-san volume delete -e $sanName -g $resourceGroupName -v $volumeGroupName -n $volumeName --x-ms-force-delete false --x-ms-delete-snapshots false
6768
```

0 commit comments

Comments
 (0)