fix deletion of folder with contents