Skip to content

Commit 6b5440a

Browse files
Merge pull request #273316 from normesta/gen2
Clarifying recursive delete permissions
2 parents 87cc155 + bf58873 commit 6b5440a

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

articles/storage/blobs/data-lake-storage-access-control.md

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ author: normesta
66

77
ms.service: azure-data-lake-storage
88
ms.topic: conceptual
9-
ms.date: 08/30/2023
9+
ms.date: 04/24/2024
1010
ms.author: normesta
1111
ms.reviewer: jamesbak
1212
ms.devlang: python
@@ -102,13 +102,31 @@ This table shows a column that represents each level of a fictitious directory h
102102
| Read Data.txt | `--X` | `--X` | `--X` | `R--` |
103103
| Append to Data.txt | `--X` | `--X` | `--X` | `RW-` |
104104
| Delete Data.txt | `--X` | `--X` | `-WX` | `---` |
105+
| Delete /Oregon/ | `-WX` | `RWX` | `RWX` | `RWX` |
106+
| Delete /Oregon/Portland/ | `--X` | `-WX` | `RWX` | `RWX` |
105107
| Create Data.txt | `--X` | `--X` | `-WX` | `---` |
106108
| List / | `R-X` | `---` | `---` | `---` |
107109
| List /Oregon/ | `--X` | `R-X` | `---` | `---` |
108110
| List /Oregon/Portland/ | `--X` | `--X` | `R-X` | `---` |
109111

112+
### Deleting files and directories
113+
114+
As shown in the previous table, write permissions on the file are not required to delete it as long as the previous two conditions are true. However, to delete a directory and all of its contents, the parent directory must have Write + Execute permissions. The directory to be deleted, and every directory within it, requires Read + Write + Execute permissions.
115+
116+
> [!NOTE]
117+
> The root directory "/" can never be deleted.
118+
119+
### Which permissions are required to recursively delete a directory and its contents?
120+
121+
- The caller has 'super-user' permissions,
122+
123+
Or
124+
125+
- The parent directory must have Write + Execute permissions.
126+
- The directory to be deleted, and every directory within it, requires Read + Write + Execute permissions.
127+
110128
> [!NOTE]
111-
> Write permissions on the file are not required to delete it, so long as the previous two conditions are true.
129+
> You do not need Write permissions to delete files in directories. Also, the root directory "/" can never be deleted.
112130
113131
## Users and identities
114132

0 commit comments

Comments
 (0)