How can I do a complete clean installation of the development toolchain OS X terminal

I have been having so many issues and though I’m fairly far down the process I am assuming it should just work if you follow the documentation. I thought I did that but it did not work properly possibly due to multiple python versions (3.7 and 3.9). I ultimately want to be able to walk up to another machine and go through the installation without having to hack PATH variables and such. What is the best way to clean it all off and start over? Installing a new system is a possibility but what if I run into another python version issue? I did go through in reverse order removing each item with brew or pip3 but that doesn’t seem to have made a difference I just get back here so I must be leaving something when I do that. If somebody sees my previous post and has a suggestion of the underlying issue that would be immensely helpful