{"id":1593,"date":"2015-02-06T14:41:26","date_gmt":"2015-02-06T19:41:26","guid":{"rendered":"http:\/\/www.shainmiley.com\/wordpress\/?p=1593"},"modified":"2015-02-06T14:41:26","modified_gmt":"2015-02-06T19:41:26","slug":"remove-objects-from-ceph-pool-without-deleting-pool","status":"publish","type":"post","link":"https:\/\/www.shainmiley.com\/wordpress\/2015\/02\/06\/remove-objects-from-ceph-pool-without-deleting-pool\/","title":{"rendered":"Remove objects from Ceph pool without deleting pool"},"content":{"rendered":"<p>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.<\/p>\n<p>If you are trying to clear up &#8216;rados bench&#8217; objects you can use something like this:<\/p>\n<p>&#8216;rados -p temp_pool cleanup &#8211;prefix benchmark&#8217;<\/p>\n<p>If you are trying to remove all the objects from a pool that does not prefix the object names with:<\/p>\n<p>****WARNING THIS WILL ERASE ALL OBJECTS IN YOUR POOL*****<br \/>\n&#8216;for i in `rados -p temp_pool ls`; do echo $i; rados -p temp_pool rm $i; done&#8217;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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 &#8216;rados bench&#8217; objects you can use something like this: &#8216;rados -p temp_pool cleanup &#8211;prefix benchmark&#8217; If [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[35],"tags":[],"_links":{"self":[{"href":"https:\/\/www.shainmiley.com\/wordpress\/wp-json\/wp\/v2\/posts\/1593"}],"collection":[{"href":"https:\/\/www.shainmiley.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.shainmiley.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.shainmiley.com\/wordpress\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.shainmiley.com\/wordpress\/wp-json\/wp\/v2\/comments?post=1593"}],"version-history":[{"count":2,"href":"https:\/\/www.shainmiley.com\/wordpress\/wp-json\/wp\/v2\/posts\/1593\/revisions"}],"predecessor-version":[{"id":1595,"href":"https:\/\/www.shainmiley.com\/wordpress\/wp-json\/wp\/v2\/posts\/1593\/revisions\/1595"}],"wp:attachment":[{"href":"https:\/\/www.shainmiley.com\/wordpress\/wp-json\/wp\/v2\/media?parent=1593"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.shainmiley.com\/wordpress\/wp-json\/wp\/v2\/categories?post=1593"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.shainmiley.com\/wordpress\/wp-json\/wp\/v2\/tags?post=1593"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}