I have uninstalled Matlab with a software for deleting applications (AppCleaner), but I can't delete a directory in the Trash. The directory is "MATLAB_R2018b.app".
If I click on "empty trash" I get the error "The operation can’t be completed because the item “MATLAB_R2018b” is in use", even if it isn't in use and I checked that with the Activity Monitor.
Also I tried manually using the terminal. I tried with rm -rf MATLAB_R2018b.app
and suto rm -rf MATLAB_R2018b.app
, but I got the error rm: MATLAB_R2018b.app/toolbox/matlab/datatools/variableeditor/js/peer/release/dgrid/css: Directory not empty
.
The problem is that if I go that directory it is empty! Any ideas?