Going to have to guess what you have without a picture or more info.
Black iron, Copper, Pex ?
If the gas valve is shut off near the main and the lines been uncapped to vent the gas just start unscrewing it.
Make sure to cap and lines left in place or add a plug if it's removed back to the valve.
When posting in forums, letting us know your location will help others give better feedback/advice/solutions to your questions
It's black iron. I may leave it haven't decided yet. I took down the plaster and poorly finished drywall in my basement. I'm just trying to clean up stuff that is uneccessary or looks goofy. (Of which there is plenty) The gas pipe will probably stay, I just want to make sure I know what I'm doing if I do decide to remove it. Thanks for the replies.