For future reference, for these fuel lines, you push the black female fitting against the male, press the light grey tab inwards, then pull outwards.
Reinstallation is as simple as fitting the male and female parts together, ensuring a "click" happens. Do a light tug to ensure the fitting clamp...