The moves get deleted in order from top to bottom. If one wants to make sure a certain move dsnt get deleted he/she can withdraw the pkemon from the daycare every so often and place the move they wish to keep in the bottom(4th slot).
You cant you have to raise them yourself to prevent them from learning moves you dont want.Otherwise the will be taught them by daycare keepers