I would never ever recommend using gasoline as a cleaning agent due to its low flash point. A gasoline fire will get all over you in a hurry, just not worth the risk.
Diesel fuel, kerosene, and mineral spirits are much safer, yet there is some risk with them also.
Al