Regarding detaching a tube from a valve on the top of a water storage tank
It's a quick connector. Water pressure actually pushes the locking mechanism to hold the tube in.

With the pressure completely relieved you can press the grey ring around the blue tube inward and at the same time pull the tube out.