Vacuuming the carpet and upholstery can help draw out lingering odors, but that may not be enough.
confirm that the seats and floor of the car are totally dry.
Sprinkle baking soda on the upholstery and carpet.

Maddy Price ©Lifewire
Leave the baking soda on the upholstery and carpet for several minutes.
Vacuum up the baking soda.
What if Baking Soda Doesn’t Work?
You will then want to spray a deodorizer into the fresh air intake.
Only use a product that’s designed for use in automotive HVAC systems.
Spraying a product that’s meant for another use may leave an undesired residue or have other unforeseen consequences.
Febreze, in particular, utilizes a chemical that traps odor molecules.
This is where ozone generating technology comes into play.
It’s important to note that ozone generators aren’t the same as air purifiers or ionizers.
These single oxygen atoms then bind to O2 molecules, creating O3, or ozone.
initiate the ozone generator to fill the interior volume of the car with ozone.