Skip to content

Add command with example how to empty up an entire Object Storage #372

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: update-suggest-changes-to-v2
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions docs/hypernode-platform/object-storage/managing-objects.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,15 @@ If you run the `show` command after the sync operation has finished, you’ll se
app@abcdef-example-magweb-cmbl:~$ hypernode-object-storage objects show 1234
Process 1234 does not exist anymore
```

## Empty up an Object Storage

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:

```console
app@abcdef-example-magweb-cmbl:~$ hypernode-object-storage objects rm s3://main --recursive
delete: s3://main/file1.txt
delete: s3://main/file2.txt
```

Be careful when using `--recursive`, as this action is irreversible and will permanently remove all data from the Object Storage.