I use Windows and every time I open Mathematica it creates a "Wolfram Mathematica" directory under my documents, which I don't want. My first choice would be to prevent Mathematica from even creating that directory, but I believe that is not possible. So my second choice is to move it somewhere else. I have researched this and tried several things but I still cannot do it.
I believe the location of that directory could be controlled by either \$UserDocumentsDirectory or NotebookBrowseDirectory. If it is $UserDocumentsDirectory then I'm not sure how to permanently change the value of this. If it is NotebookBrowseDirectory then I think the way to change it is with the Options Inspector. However, within the Options Inspector all values are grayed out when the scope is set to either Selection or Selected Notebook. I can only make changes when the scope is set to Global Preferences, and when I do change NotebookBrowseDirectory with that setting it doesn't do what I want. So if NotebookBrowseDirectory is indeed what controls the location of that directory it must need to be set under Selection or Selected Notebook, which I cannot do.
Not sure if this is significant, but the example given on this page fails for me https://reference.wolfram.com/language/tutorial/ManipulatingNotebooks.html#3080.
When I input Options[$FrontEnd, NotebookBrowseDirectory] it returns the error Options::optnf: NotebookBrowseDirectory is not a known option for FrontEndObject. That page doesn't say what version of Mathematica it applies to. I am using 12.0, but that page looks recent enough to cover that. So that's another mystery.
Can someone tell me how to permanently move the Wolfram Mathematica directory?
DeleteDirectory[ FileNameJoin[{$UserDocumentsDirectory, "Wolfram Mathematica"}], DeleteContents -> True]to yourinit.mfile – Gustavo Delfino Nov 25 '21 at 21:19