QB64 Phoenix Edition
kill "filename.ext" = shift-delete - Printable Version

+- QB64 Phoenix Edition (https://qb64phoenix.com/forum)
+-- Forum: Chatting and Socializing (https://qb64phoenix.com/forum/forumdisplay.php?fid=11)
+--- Forum: General Discussion (https://qb64phoenix.com/forum/forumdisplay.php?fid=2)
+--- Thread: kill "filename.ext" = shift-delete (/showthread.php?tid=4496)

Pages: 1 2


RE: kill "filename.ext" = shift-delete - justsomeguy - 02-27-2026

For those Linux in particular Ubuntu flavors the simple one is to use.
Code: (Select All)
file$ = "TrashMe.txt"
IF _FILEEXISTS(file$) THEN
  SHELL _HIDE "gio trash " + file$
END IF
I've tested it on my Ubuntu machine and it preserves it origin, so it can be restored.


RE: kill "filename.ext" = shift-delete - SMcNeill - 02-27-2026

https://qb64phoenix.com/forum/showthread.php?tid=4514  <-- Recycle File, in all its simplicity.

Thanks to @justsomeguy for the Linux equivalent of the windows powershell command for this.  I know squat about linux and am simply trusting his version to work as advertised for us.  Wink