recycle
Set option to move deleted files to recycle folder
Description
status = recycle
returns the current state
for recycling files you remove using the delete
function.
When status
is off
, the delete
function
permanently removes the files. When status
is on
,
deleted files move to a different location. For details, see the Tips section.
Note
On Mac platforms, the recycle
option
is not applied to files deleted from network drives.
Examples
Input Arguments
Tips
The location for storing recycled files varies by platform, as follows:
Windows® platforms — Recycle bin.
Mac platforms — Trash.
Linux® platforms — Subfolder with the prefix
MATLAB_Files_
in the system temporary folder, as returned by thetempdir
function.
The general preference for Deleting files sets the state of the
recycle
function at startup. When you change the preference, MATLAB changes the state ofrecycle
. When you change the state ofrecycle
, MATLAB also updates the Deleting files preference.
Version History
See Also
delete
| dir
| ls
| rmdir
| Preferences Window