Skip to content

Instantly share code, notes, and snippets.

@manuthu
Created March 5, 2021 06:31
Show Gist options
  • Save manuthu/097081b66e364a169122a282b1d98629 to your computer and use it in GitHub Desktop.
Save manuthu/097081b66e364a169122a282b1d98629 to your computer and use it in GitHub Desktop.

Get the user_id from the console/portal

List all the files belonging to the user . For this case, we use - 6a76bf01-dc90-4996-a846-8472cb086565

rados ls -p .rgw.buckets | grep 6a76bf01-dc90-4996-a846-8472cb086565

Save the files to a log file

rados ls -p .rgw.buckets | grep 6a76bf01-dc90-4996-a846-8472cb086565 > <email>-6a76bf01-dc90-4996-a846-8472cb086565.log

Confirm that these files have been successfully logged

head <email>.co-6a76bf01-dc90-4996-a846-8472cb086565.log

Issue the remove command

for file in $(cat <email>.co-6a76bf01-dc90-4996-a846-8472cb086565.log);do rados -p .rgw.buckets rm $file;done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment