How to remove garlic smell from refrigerator/ice maker
Basically you need to turn it off, remove everything from it and then thoroughly clean it using a solution of warm water and baking soda.

Baking soda will help remove/absorb any odors that have leeched into the fabric of the fridge.

Once that is done and it has completely dried, you can restock the fridge, examining carefully anything you are putting back in for cracks, leaks or spillage that might have caused the bad smell.

Note that it is more likely that any smell is coming from something spoiled or spilled in the fridge rather than the fridge itself as refrigerators are made out of materials that are designed to NOT absorb bad smells.