On hardwood, vinegar can be safely used; but, for it to be effective, it must be diluted. Undiluted vinegar can leave your flooring sticky and emit a pungent smell that takes a long time to disappear.