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
This command set provides commands to manage spaces, including purging disabled spaces that exceed the retention period.
146
+
147
+
```bash
148
+
ocis storage-users spaces <command>
149
+
```
150
+
151
+
```plaintext
152
+
COMMANDS:
153
+
purge Purge disabled spaces that exceed the retention period
154
+
```
155
+
156
+
#### Purge (delete permanently) Disabled Spaces
157
+
158
+
Purge disabled spaces of a specific type that have exceeded the retention period. This command helps delete permanently the spaces that have been disabled and are no longer needed.
159
+
160
+
```bash
161
+
ocis storage-users spaces purge [command options]
162
+
```
163
+
164
+
**Options:**
165
+
-`--dry-run, -d` - Only show what would be purged without actually purging (default: true)
166
+
-`--type, -t` - Type of spaces to purge: 'personal' or 'project' (required)
167
+
-`--space-id, -s` - Specific space ID to purge (optional, omit to process all spaces)
168
+
-`--retention-period, -r` - Retention period for disabled spaces (default: '336h', e.g., '14d', '720h')
- Only processes spaces that are in 'trashed' state
189
+
- The `--dry-run` flag defaults to `true` to prevent accidental purging
190
+
- Retention period supports human-readable formats (e.g., '336h', '14d', '720h')
191
+
143
192
### Manage Trash-Bin Items
144
193
145
194
This command set provides commands to get an overview of trash-bin items, restore items and purge old items of `personal` spaces and `project` spaces (spaces that have been created manually). `trash-bin` commands require a `spaceID` as parameter. See [List all spaces
0 commit comments