When we moved last year, we replaced the carpets right beforehand.
They were disgusting. The new house still has carpeting upstairs, but the downstairs is all hardwood. I wouldn't mind getting rid of all the carpet eventually.
There was only carpet in the living room and dining room when we moved in here. It was nasty, but because we thought there was only plywood under it we left it be because we couldn't afford to replace it right away.
We discovered that it was hardwood parquet when we cut a section of the carpet out to put down slate for the woodstove we put in - the rest of it came out the same day!!!!