Make a new txt file (let's say new.txt) and save all the modules there, and then uninstall it .
pip freeze > new.txt (storing)
pip uninstall -r new.txt (deleting)