How to remove ScopeLock before deletition
- Dominant language
- Python
- Stars
- 4.6k
- Forks
- 3.5k
- Avg merge
- 3d 2h
- Merged PRs (30d)
- 60
Description
I created a file-share using the CLI and then tried to delete it using
```
az storage share-rm delete --resource-group GROUP --storage-account ACCOUNT --name NAME --yes
```
I got an error:
```
(ScopeLocked) The scope '...' cannot perform delete operation because following scope(s) are locked: '...'. Please remove the lock and try again.
Code: ScopeLocked
```
IMHO The documentation of `share-rm` should mention this and maybe other potential error messages and how to handle them.
At least there should be a way to find the meaning of [ScopeLocked](https://docs.microsoft.com/en-us/search/?terms=ScopeLocked&scope=Azure) but the search returns nothing.
---
#### Document Details
⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*
* ID: 87de814a-84c0-2ac6-982c-d8415b0d7571
* Version Independent ID: c18ab402-f70c-774e-a48a-c2c03695b9d5
* Content: [az storage share-rm](https://docs.microsoft.com/en-us/cli/azure/storage/share-rm?view=azure-cli-latest)
* Content Source: [latest/docs-ref-autogen/storage/share-rm.yml](https://github.com/MicrosoftDocs/azure-docs-cli/blob/master/latest/docs-ref-autogen/storage/share-rm.yml)
* Service: **storage**
* GitHub Login: @rloutlaw
* Microsoft Alias: **routlaw**
Contributor guide
Assessment
This issue has not been assessed yet.