I cant get my knee replacement done cause of a toenail fungus, would it go faster if I had them take my toenails out? Is that painful and how painful

Removing the nail- -is not a “cure” for nail fungus. It usually recurs. See a dermatologist for eval, there are meds that can eliminate it. But takes a while to do so. In my practice that was not a contradiction for TKA. And has never been an issue. Image is of an infected toe. This would be a reason not to do a TKA.
Terbinafine. Stick with terbinafine anti-fungal medication that your other questions imply that you are taking.
Wish you good health!