Can't delete the cache folders created by simulink

122 ビュー (過去 30 日間)
Tim Darrah
Tim Darrah 2021 年 9 月 7 日
回答済み: Sivani Pentapati 2021 年 11 月 29 日
How do I delete these folders that Simulink keeps creating? I can't delete them from within matlab or file explorer. R2020a and R2021a do the same thing. I'm setting up an experiment and need to run something on the order of 100k simulations, so this is going to be a problem.
When I use file explorer I get admin permission error (it does this for all folders):
When I use file explorer as admin I also get a permission error (for all folders):
I can't even go in and change the permissions to delete them. I just did that but still getting the same error, even though "admin", "authenticated users", "darrahts", <basically all the user options> have "full control" permissions. The folders themselves are also marked read only, and when I deselect that and select the option to propogate the changes to subfolders and files, it does not propogate, and subfolders and files also remain read only.
I need these folders to be automatically deleted.

回答 (1 件)

Sivani Pentapati
Sivani Pentapati 2021 年 11 月 29 日
Please follow the below steps to clear cache folders of simulink
  • You need to restore the MATLAB default search path, so it is important to take a backup of your 'pathdef.m' file, which can be located by using the command:
which -all pathdef
  • Before proceeding, ensure that you make a safe copy of the file by copying it to a folder outside of your MATLAB path.
  • After taking the backup, please execute the following commands in the MATLAB Command Window to restore the default MATLAB search path and rehash the toolbox cache
restoredefaultpath
rehash toolboxcache
sl_refresh_customizations
  • After this step, please use MATLAB/Simulink to see if the issue occurs again. If the issue is resolved, then you may want to save the new MATLAB search path by executing the following command:
savepath

カテゴリ

Help Center および File ExchangeSearch Path についてさらに検索

製品


リリース

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by