Buying a house with hardwood floors and “cat smell”

Br

Had anyone successfully bought a house with cat smell that had all hardwood floors and were able to get the smell out without ripping up the floors and sub floor? 👏🏼