Last active
May 31, 2024 05:43
-
-
Save singularitti/62f4b9067e369e70850449bcce46d55a to your computer and use it in GitHub Desktop.
Uninstall all paclets #Mathematica
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| dirs = FileNameJoin[{$HomeDirectory, $BasePacletsDirectory, | |
| "Repository", "*"}] // FileNames | |
| paclets = Map[StringSplit[FileNameSplit[#][[-1]], "-"][[1]] &, dirs] | |
| Map[PacletUninstall, paclets] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment