Initial implementation of a cleanup helper
gendocs