Skip to content

Commit 0edebf6

Browse files
authored
Merge pull request #372 from ByteInternet/add-command-about-how-to-empty-an-entire-bucket
Add command with example how to empty up an entire Object Storage
2 parents 73d3fac + fe8b3bb commit 0edebf6

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

docs/hypernode-platform/object-storage/managing-objects.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,15 @@ If you run the `show` command after the sync operation has finished, you’ll se
5454
app@abcdef-example-magweb-cmbl:~$ hypernode-object-storage objects show 1234
5555
Process 1234 does not exist anymore
5656
```
57+
58+
## Empty up an Object Storage
59+
60+
To remove all objects from an Object Storage, use the `rm` subcommand with the `--recursive` flag. This will delete every object within the specified Object Storage. For example:
61+
62+
```console
63+
app@abcdef-example-magweb-cmbl:~$ hypernode-object-storage objects rm s3://main --recursive
64+
delete: s3://main/file1.txt
65+
delete: s3://main/file2.txt
66+
```
67+
68+
Be careful when using `--recursive`, as this action is irreversible and will permanently remove all data from the Object Storage.

0 commit comments

Comments
 (0)