However, depending on the size of the bucket, you'll run into the 1k
key limit. I'll save you some searching now ;)
https://gist.github.com/763977
--
John E. Vincent
http://about.me/lusis
One option you might want to try down the road is, depending on how
you're putting stuff in the bucket, is to maintain an "index" bucket
somewhere. It's not as pretty but you could have a bucket called, say,
"my-bucket-indexes" and put a single file per bucket in there. The
file would contain a list of items in a given bucket. The you just
iterate over the contents of the file to clean out the bucket when it
gets to a certain size.
--