Bug fix; delete Path first, and delete File when with_file is given