Rust inside a motorcycle gas tank should be removed only after the fuel has been drained safely and the tank has been isolated from every ignition source.
Cleaning a gas tank means removing old fuel, loose deposits, water, sludge, or light internal contamination without creating a fire, explosion, or chemical-exposure hazard.