On PowerShell: (Invoke-WebRequest -Uri https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py -UseBasicParsing).Content | python - --uninstall On shell: curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python - --uninstall
Here is what the above code is Doing:
1. It’s downloading the get-poetry.py script from the Poetry GitHub repository.
2. It’s running the script with the –uninstall option.
3. It’s removing the ~/.poetry folder and ~/.config/pypoetry folder.
4. It’s removing the poetry, poetry.cmd, and poetry.bat files from your PATH.
If you installed Poetry using the shell installer, you can uninstall it by running the uninstall.sh script:
If you installed Poetry using Homebrew, you can uninstall it by running brew uninstall poetry.