Delete file to recycle bin with Delphi

Question

How to send a file to the Windows Recycle Bin? (If needed, I want to restore it).

Answer

Use SHFileOperation with FO_DELETE. It's declared in the ShellApi unit. See more info in the help (Ctrl+F1)