12
$\begingroup$

How can I remove a paclet that was automatically downloaded when I used a function for the first time (i.e. NetChain)?

I believe the download was faulty, preventing me from using any of the functions from that paclet (e.g. ElementwiseLayer, etc.). That's why I want to redownload it. If I understand correctly, paclets are downloaded from the Wolfram Research Server when an uncommon function such as NetChain or Sound are used for the first time (indicated by a blue progress bar under the cell).

$\endgroup$
  • 3
    $\begingroup$ It is normally considered safe to delete the entire Paclets folder in AppData\Roaming (if on windows). The missing data will be redownloaded next time you need it. See also Mathematica 10.0.x freezes in Initializing kernels and answers. $\endgroup$ – MarcoB Aug 15 '17 at 4:56
15
$\begingroup$

Use PacletFind to find the installed versions, of the paclet, for exmaple:

paclets = PacletFind["*MX*"]
(*{Paclet[MXNetLink,11.1.0,<>]}*)

Then evaluated PacletUninstall to remove said paclet. For example

PacletUninstall[ paclets[[1]] ]

I recommend using Part to select the paclet. If you copy/paste, you'll need to be careful to select the visible expression along with its interpretation. It's a little to easy to select just the displayed Paclet["foo",<>] without the interpretation.

If you like to see where the paclets are installed, use the following and again, be careful about directly copying the outputs:

Table[{paclet, "Location" /. PacletInformation[paclet]}, {paclet, 
   paclets}] // TableForm
$\endgroup$
  • $\begingroup$ Do you know how I can look for the directory of paclet listed by PacletFind? $\endgroup$ – Miladiouss Sep 20 '17 at 1:36
  • 3
    $\begingroup$ "Location" /. PacletInformation[paclet] $\endgroup$ – Itai Seggev Sep 20 '17 at 6:43
  • 2
    $\begingroup$ Or paclet["Location"] $\endgroup$ – b3m2a1 Sep 20 '17 at 23:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.