Delete files or objects
delete
deletes
filename
filename
from disk, without requesting verification. To
change whether the specified file is permanently deleted or sent to the recycle bin,
change the Deleting files preference. To do so, go to the
Home tab and in the Environment
section, click Preferences. Select MATLAB > General. Then, choose from one of the two options in the Deleting
files section. By default, the Delete
permanently option is selected.
Note
On Mac platforms, the Deleting files preference is not applied to files deleted from network drives. All files are deleted permanently.