Please do let them go asap. I have seen this before in my career, and as a junior software engineer (at least that was my title when I got hired) I was furious when I had to clean up after the "senior" engineer so many times because of their incompetence. My teammates were all frustrated equally, but we were working as a flat hierarchy team so there was no boss to report this to...
Eventually the "senior" left the company himself, but it took 2 years. That was 2 years of frustration for everyone in the team because we felt it was so unfair when somebody got paid more than us but caused so many blocks because of their incompetency.