To remove a DIMM, rotate both DIMM socket ejectors outward as far as they will go, then carefully lift the DIMM straight up to remove it from the socket.
Replace each failed DIMM with either another DIMM of the same rank size (quad-rank, dual-rank, or single-rank) or leave the socket empty.