Edeliver auto-remove old releases

Hey everyone,

I’ve recently been running out of space, and I’d like to setup edeliver so that after a deploy, it auto-removes old releases on the build host, as well as all the deploy servers (in both lib & releases folders). I’d like to just keep the latest 5 releases, and remove everything older.

It looks like I’d have to write a custom script using the post_extract_release_archive hook, but I wanted to check that there wasn’t something already built to handle this first. Anyone know if this already exists?