Is there a way to "flush" a gas tank?

I know the best would be to simply replace it, and failing that, some people have suggested removing it, putting BB's in and about a half-gallon of gas or something, rattling it around for a few, and then emptying it...repeat as necessary...

But I was thinking more like just unhooking the line before the pump, and then using a siphon or something to draw gas from the tank, then filter that and replace in the tank...then repeat until most of the garbage was sucked up from under the pickup.

Would that work?

Keep in mind that this is just going to be a driver, not a restoration.