Water in fuel message removal

How to cancel water in fuel message.

2005 hd 6.6l diesel chevrolet



I replaced fuel filter, drained tank,

replaced sensor because a wire had broken off of it.

Tried disconnecting batteries and sensor, did not work.