add ability to prune a repo of old content

still needs tests!
for #228