Skip to content
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

Add S3 recursive container deletion info #124

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
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
15 changes: 15 additions & 0 deletions docs/_optimist/guided_tour/step23/index.de.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,21 @@ $ s3cmd setacl s3://e4d05df3-aa8e-4a37-b1b5-2745d189b189/test.yaml --acl-private
s3://e4d05df3-aa8e-4a37-b1b5-2745d189b189/test.yaml: ACL set to Private [1 of 1]
```

Rekursives Löschen von Containern mit der OpenStack-CLI
----

Der Versuch, einen Container mit verbleibenden Objekten zu löschen, ist über die OpenStack-CLI nicht möglich. Wir müssen daher den Inhalt und den Container rekursiv mit dem folgenden Befehl bereinigen:

```bash
openstack container delete -r example-container
```

Um Container mit vielen Objekten (100+) zu bereinigen und zu löschen, empfehlen wir den folgenden Ansatz, um Zeitüberschreitungen bei der Verwendung des rekursiven Löschbefehls zu vermeiden:

```bash
while true; do time openstack container delete -r example-container; sleep 2; done
```

Abschluss
---------

Expand Down
15 changes: 15 additions & 0 deletions docs/_optimist/guided_tour/step23/index.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,21 @@ $ s3cmd setacl s3://e4d05df3-aa8e-4a37-b1b5-2745d189b189/test.yaml --acl-private
s3://e4d05df3-aa8e-4a37-b1b5-2745d189b189/test.yaml: ACL set to Private [1 of 1]
```

Recursively Deleting Containers Using the OpenStack CLI
----

Attempting to delete a container which has remaining objects is not possible via the OpenStack CLI. We therefore need to clean up the contents and the container recursively with the following command:

```bash
openstack container delete -r example-container
```

To cleanup and delete containers with many objects (100+), we recommend the following approach to avoid timeouts when using the recursive delete command:

```bash
while true; do time openstack container delete -r example-container; sleep 2; done
```

Conclusion
---------

Expand Down