You seem to have this back to front. Petrol in a Diesel is not good as it can mess up the lubrication and high pressure pumps if left. Drain or pump out is the best option.
When left over night the petrol will go to the bottom of the tank and diesel float on top. Then the fuel pick up will get near neat petrol and that is not good! But I've had it happen and crammed as much diesel in the tank as possible and kept the fuel stirred with brisk driving and by blowing through some hose to make sure the fuel was well mixed in the morning.
In years gone by some old hands added petrol to diesel n cold weather the stop it waxin in cold weather. Not the best of ideas but many diesels ran for years wit litle or no problems!
Putting diesel in a petrol engine will cost you big time and the unleaded petrol fillers at the pumps are narrower on unleaed than diesel and you can't fit the fat diesel pipe into modern car petrol filler pipe. It's not the other way round !!!