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, delete
moves the files to a different location, which varies by platform:
Windows® — Recycle bin.
macOS — Trash.
Linux® platforms — Subfolder with the prefix
MATLAB_Files_in the system temporary folder, as returned by thetempdirfunction.
Note
On macOS, the recycle option is not applied to
files deleted from network drives.
Examples
Input Arguments
Alternative Functionality
You also can set the recycle option for MATLAB using settings. To do so, go to the Home tab and in the Environment section, click Settings. Select MATLAB > General. Then, in the Deleting files section, select from the available options. By default, the Delete permanently option is selected.
Extended Capabilities
Version History
Introduced before R2006a