SD.begin fails after the mircoSd is written & arduino resetted

So you don't remove the file?