Is it safe to delete the node-specific folders under ~/.MathWor​ks/Service​Host/ on Linux?

25 views (last 30 days)
I am using MATLAB R2024 on a Linux environment, and I noticed that folders are being created under the path ~/.MathWorks/ServiceHost/, one for each node I run, and each folder is consuming a significant amount of disk space. Is it safe to delete these folders? If not, is there a way to reduce the disk space usage?

Accepted Answer

Angelo Yeo
Angelo Yeo on 14 Aug 2024
Hi Dong Hyuk,
(1) If you delete the MathWorks Service Host folders, it will reinstall them when it's launched.
(2) Is the storage size your only concern? How does it affect your workflow?
(3) What version of service host do you use? Starting with MathWorks Service Host v2024.6.0.6, the size of the Service Host directory does not scale up when the user's home directory is shared across multiple hosts. All hosts will utilize the same shared directory of the MathWorks Service Host without creating a new unique installation for each host. See the official answer below.
(4) Please reach out to Installation Support team for issues related to the MathWorks Service Host.
Contact Support
  2 Comments
Paul Raines
Paul Raines on 17 Nov 2024 at 17:53
We have a 1000+ user academic site with Linux cluster where user home directories are on volume where each user has a 5GB quota. This creation of a hidden subdirectories of this size in user home dirs of this size is really a violation of excepted norms for the use of Linux home directories. This is even true for ~/.matlab which also gets into multiple gigabytes for some users. No application should need such "auto-generated" customization per user of such extreme size. This is just quite frankly a terrible and inefficient design flaw in the software development.
I have discovered if I create a root a ~/.MathWorks directory in a user's home dir they cannot write to it spits out a error about it being unwritable but Matlab still loads and seems to work fine in -nodisplay mode.

Sign in to comment.

More Answers (0)

Categories

Find more on File Operations in Help Center and File Exchange

Products


Release

R2024a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!