I would guess it depends on how bad your flooring is. Does it need replacing?
If not, take it down as far as you can to ex[ose the molding wood, A good spraying with diluted bleech should kill the mold. Dry repeat a couple of time. There is probably some sort of preservative that would counter act mold you could treat it will before replacing the items you removed.
Just a wild guess but that is what I would do.
Happy Glamping!!