delete the correct file