There are 3 ways:
1. Get rid of source, garbage, pets mess, mold, mildew, whatever. Works 100% of the time.
2. Clean and disinfect source, neutralize odor with oxidizer like bleach, Hyd peroxide. Interesting to note that many Doctor offices have stopped using Bleach to wipe down things because of potential allergy or health risk. Now many use Hyd Peroxide as it is an oxidizer, leaves no odor, no residue & or health risk.
3. Mask it with something that smells pretty for you. Industrial janitor distributors sell a bottle of stuff named “Sweet Pee”. Just masks the odor. The bars of Irish spring soap, Fabreze are only temporary fixes.