Commit 0484464
committed
Allow recursively deleting not-empty buckets
Closes #236 and #225
A much-requested feature of the obj plugin was to add the ability to
delete buckets that aren't empty, or otherwise remove many objects in
one operation. Unfortunately this has to happen client-side, so it can
take a while for large buckets.
This change adds a `--recursive` flag to `linode-cli obj rb` that will,
if given, remove all objects from the bucket before removing the bucket.
As implemented here this will not abort in-progress multi-part uploads
or clear stale object versions; that may be added later if it's
necessary (but if such things exist, they will prevent the bucket
deletion from completing successfully).1 parent ff44c83 commit 0484464
1 file changed
Lines changed: 15 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
157 | 161 | | |
158 | 162 | | |
159 | 163 | | |
160 | 164 | | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
161 | 176 | | |
162 | 177 | | |
163 | 178 | | |
| |||
0 commit comments