For most bikes, the gas flow from the tank is controlled by a petcock located on the underside of the gas tank. Just turn it to the "OFF" position and you should be able to remove it without spilling any gas. Always, check your manual though, because some tanks have cross-overs that run under the frame down-tube or coils mounted to it.
"Abortion is a non issue. Like gun control. It's constitutional case law settled by the Supreme Court. There isn't a thing any elected official is ever going to do about it. it doesn't matter what the vitin public thinks about them,…"