From 9906bf433ff6347c2c24585eb1d29cec92928971 Mon Sep 17 00:00:00 2001 From: Jonathan Visser Date: Fri, 13 Jun 2025 10:05:22 +0200 Subject: [PATCH] Add command with example how to empty up an entire Object Storage --- .../object-storage/managing-objects.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/docs/hypernode-platform/object-storage/managing-objects.md b/docs/hypernode-platform/object-storage/managing-objects.md index b008cef5..c035b799 100644 --- a/docs/hypernode-platform/object-storage/managing-objects.md +++ b/docs/hypernode-platform/object-storage/managing-objects.md @@ -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.