Remove file with "SdFat.h"

fat16lib:
You can just call

 sd.remove(infile);

Perfect, thankyou.

Graham