diesel in a gas engine?

Couldnt you drain the tank, fill it with gas, feed the injectors out of the car, and turn it over to flush most of it out? I’m sure it’s not going to make the car perfect again, but damn, I’d hate to junk a car out of a stupid mistake.