Safest, If you can, disconnect the fuel line and pump out the tank with the cars fuel pump, but you won't completely empty the tank.
You might get by with a additive that removes the water and some new fuel filters. Big chance to take.
A friend got some bad diesel in his pickup. Cost his warranty co a few thousand to fix everything.