Copy vlc-delete.lua
to %appdata%\vlc\lua\extensions\
and restart the VLC Media Player.
mkdir %appdata%\vlc\lua\extensions\
curl -# -o %appdata%\vlc\lua\extensions\vlc-delete.lua https://raw.githubusercontent.com/surrim/vlc-delete/master/vlc-delete.lua
Copy the vlc-delete.lua
file to ~/.local/share/vlc/lua/extensions/
and restart the VLC Media Player.
mkdir -p ~/.local/share/vlc/lua/extensions/
curl -# -o ~/.local/share/vlc/lua/extensions/vlc-delete.lua https://raw.githubusercontent.com/surrim/vlc-delete/master/vlc-delete.lua
mkdir -p ~/.var/app/org.videolan.VLC/data/vlc/lua/extensions/
curl -# -o ~/.var/app/org.videolan.VLC/data/vlc/lua/extensions/vlc-delete.lua https://raw.githubusercontent.com/surrim/vlc-delete/master/vlc-delete.lua
Note: If trash-cli is installed videos will be moved to the recycle bin instead of removing them directly.
When playing a video you can click on View
→ Remove current file from playlist and disk
. Then the video will be removed and the next one is played.
- There is no fixed shortcut key; it depends on the menu language.
For instance in English: Press and holdAlt
to activate the hotkey navigation, then pressi
(Vi̲ew
), thenr
(R̲emove current file from playlist and disk
). I haven't found a solution to implement a fixed key; probably it's not supported by the VLC Media Player.
- For AutoHotKey v2 and English menus, you can use the following script.
#Requires AutoHotkey v2.0
#HotIf WinActive("ahk_exe vlc.exe")
^Delete:: {
Send("{Blind}{Ctrl up}{Delete up}")
Send("{Blind}{Alt down}{i down}{i up}{r down}{r up}{Alt up}")
}
#HotIf
Thanks for contributing DanKaplanSES and abramter
- Windows: UNC paths like
\SERVER\Share\File.mp4
are not working.
As a workaround, you could usenet use P: "\uncpath"
in the Windows terminal and open the file with a regular path. Thanks for contributing Taomyn and freeload101 - Windows: Video can't be deleted if the file name contains emojis.
Thanks for contributing Jonas1312
If you create a new issue please include your VLC Version number and operating system. Otherwise it's hard to reproduce.
The biggest help would be to contribute some Lua Code.