- Create a generic function to empty a folder tree, thanks to