The dems have to wait until after the convention. They have no procedures to replace him at the convention, as there was no one running in the primary against Joe. Their rules allow top party officials to pick a replacement if the nominee withdraws before the election. Federal laws dictate candidate must be declared sixty days before election. It’s a small window. Otherwise he would be on ballot and if elected, the VP would be sworn in as Pres on Inauguration Day.