-You can delete a container with a locked policy only by using control plane operations. All such requests are sent to the Azure Resource Manager URL. For example, the PowerShell command [Remove-AzRmStorageContainer](/powershell/module/az.storage/remove-azrmstoragecontainer) uses a control plane operation to delete a container. In contrast, the [Remove-AzStorageContainer](/powershell/module/az.storage/remove-azstoragecontainer) command attempts to use a data plane operation, which won't succeed. Similarly, the Azure CLI command [az storage container-rm delete](/cli/azure/storage/container-rm) uses a control plane operation, whereas [az storage container](/cli/azure/storage/container#az-storage-container-delete) delete relies on a data plane operation. You can also delete a container through the Azure portal, as it performs the task using a control plane operation.
0 commit comments