I download videos from Youtube to watch later. I use VLC to watch the videos and when I am done watching a video I would like to remove the file on disk directly from VLC.

I have found several guides on how to implement this, but none of them work for me:

https://forum.videolan.org/viewtopic.php?f=29&t=108811 https://forum.videolan.org/viewtopic.php?f=29&t=113813 http://addons.videolan.org/CONTENT/content-files/153041-Diskdelete.lua

If I follow those nothing happens: No buttons and if there is a keyboard shortcut I am not being told.

So how do I get a button/keyboard shortcut in VLC to delete the video file currently playing from disk?

I use VLC 2.0.8 on GNU/Linux Mint.

  • 1
    Got a link or two to the guide(s) that didn't work for you? How exactly did it fail? It would be useful to see exactly what they are suggesting, and to know how it failed for you. – Zoredache Feb 24 '14 at 21:40

So put the file in ~/.local/share/vlc/lua/extensions. I call it DeleteFile.lua.

When you start VLC you get a new menu item: View > Detetefile. It is this last step I was missing.

Edit 20170731

The code did not work very well. I changed it:


It now searches for a dir called .waste in the dir of the file and any (grand*)parent dirs, and moves the file there.

  • This doesn't work for me. – Sickest Dec 9 '15 at 22:46
  • For me neither, but adding the lua file to the directory makes it appear in VLC File Menu > Extensions > Diskdelete. But clicking it does nothing, and View > Deletefile does not appear. – Winterflags Jul 31 '17 at 0:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.