I recently wanted to cleanup a few of the pools I have been using for rados benchmarking. I did not want to do delete the pools, just the objects inside the pool.
If you are trying to clear up ‘rados bench’ objects you can use something like this:
‘rados -p temp_pool cleanup --prefix benchmark’
If you are trying to remove all the objects from a pool that does not prefix the object names with:
****WARNING THIS WILL ERASE ALL OBJECTS IN YOUR POOL*****
‘for i in `rados -p temp_pool ls`; do echo $i; rados -p temp_pool rm $i; done’