Hold both sides of the shelf. Lift the shelf up and remove it by pulling it out.
Refit the shelf by sliding it inward until the shelf snaps into the frame.
Check the orientation when refitting the shelf.