The hinge pin comes out when one undoes the top of the hinge using an allan key. 3in1 oil is recommended, WD 40 is not supposed to be used as it can make the hinge pin sticky.
Thanks to U-tube.
Eric
August 2023
Depends on the type of hinge. There are lots.
Try a squirt of WD40.