sysutils.recyclebin.send(item)

Sends a file or folder to the Recycle Bin.

Parameters

item

The file or directory to be send on the Recycle Bin, as a string, as a File, or as a Directory

Notes

Return value

Returns a boolean value indicating if the operation succeeded.

Example

local sysutils = require "sysutils" -- Delete the file "test.txt" by sending it to the Recycle Bin sysutils.recyclebin.send("test.txt")