delete writeFile