If you look at the fitting it should have a collar at each end.
Push that collar towards the main body of the fitting and pull the pipe away, or pull the fitting from the pipe.
Refitting is just a case of pushing the fitting onto the pipe until it is fully located.