You can run the following command to remove all the packages installed by pip it saves your virtual environment:-
pip freeze | xargs pip uninstall -y
To remove all the packages at the same time you can use the following piece of command this command will work in all the OSs:-
pip uninstall -r requirements.txt -y