Place a pan under the filter to catch fuel.
Clamp the rubber fuel lines with vise grips to prevent fuel from leaking before you slide the lines off the filter. Don’t clamp the metal parts of the lines to avoid damage. Alternatively, plug the line with a pen or golf tee after you remove the rubber hoses.
Turn off the key after 15 seconds and pull the wire from the diagnostic connector.