We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1fcdcf9 commit d9b99dfCopy full SHA for d9b99df
scripts/uninstall_all.sh
@@ -1,4 +1,10 @@
1
#!/bin/bash
2
3
-pip uninstall -y slack-sdk && \
4
- pip freeze | grep -v "^-e" | sed 's/@.*//' | sed 's/\=\=.*//' | xargs pip uninstall -y
+# remove slack-sdk without a version specifier so that local builds are cleaned up
+pip uninstall -y slack-sdk
5
+# collect all installed packages
6
+PACKAGES=$(pip freeze | grep -v "^-e" | sed 's/@.*//' | sed 's/\=\=.*//')
7
+# uninstall packages without exiting on a failure
8
+for package in $PACKAGES; do
9
+ pip uninstall -y $package
10
+done
0 commit comments