Get correctly the file to delete