Next: , Previous: , Up: File Directories   [Index]


7.1.4 move-file-to-trash

First, if the function system-move-file-to-trash is defined, call it with FILENAME as an argument.

Otherwise, move the file (or directory) named FILENAME to the trash, or if the variable trash-directory is defined3, to it.

When delete-by-moving-to-trash is non-nil, this function is called by delete-file and delete-directory instead of deleting files outright.

Function: move-file-to-trash filename
FILENAME

file or directory to move to trash.


Footnotes

(3)

by default it is nil