Hi,
File.Delete(FilePath,FileName) deletes a file directly from hard-disk, similar as holding Shift and then delete.
I searched but can't find nothing on how to delete to Windows Recycle bin. (For sure I'm not the only one asking this right?)
So I asked GPTchat and it came up with 2 scripts...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.