You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| List /Oregon/Portland/ |`--X`|`--X`|`R-X`|`---`|
109
111
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
+
110
128
> [!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.
0 commit comments