Dispose of any food items which carry the garlic scent.
Place an open container of baking soda in your freezer and wait a few days. If the smell lingers, proceed with the next step.
Remove all food items from your freezer and refrigerator and place them inside a cooler filled with ice for the time being. Unplug the freezer or refrigerator.
Remove any part of the freezer that is removable, such as shelves or ice trays. Mix a solution of 1 tablespoon of unscented chlorine bleach to 1 gallon of water. Wash the removable parts in this solution.
Wash the interior of the freezer with a mixture of 1 tablespoon of baking soda to 1 quart of water. Wipe away the baking soda mixture using the same chlorine solution as before.
Dry the interior by leaving the door open for 15 minutes or until it has completely dried. If the scent still remains after cleaning, continue to the next step.
Mix a solution of equal parts vinegar and water. Wipe the interior of the freezer with this solution and allow it to dry.
Place a shallow pan filled with activated charcoal, unused kitty litter, baking soda or coffee grounds inside your freezer to absorb any lingering smells. Keep the pan in your freezer for several days with the door closed and change whenever necessary. You can also use a cotton swab dipped in vanilla extract.
Roll up newspapers and place them inside your freezer for several days. After removing the newspapers, wipe down the interior with the vinegar-water solution.
Air out your freezer for several days with the unit unplugged.
Dispose of your refrigerator if you still cannot remove the smell. Make sure to follow your state's safety guidelines for refrigerator disposal. Most states require you to remove the door before throwing away the unit.