https://github.com/surrim/vlc-delete
VLC extension to remove videos from the harddisk
https://github.com/surrim/vlc-delete
lua vlc vlc-extension vlc-player
Last synced: 19 days ago
JSON representation
VLC extension to remove videos from the harddisk
- Host: GitHub
- URL: https://github.com/surrim/vlc-delete
- Owner: surrim
- License: gpl-3.0
- Created: 2015-04-18T20:35:30.000Z (about 10 years ago)
- Default Branch: main
- Last Pushed: 2025-03-17T21:54:12.000Z (about 1 month ago)
- Last Synced: 2025-03-17T22:46:11.772Z (about 1 month ago)
- Topics: lua, vlc, vlc-extension, vlc-player
- Language: Lua
- Size: 209 KB
- Stars: 97
- Watchers: 9
- Forks: 17
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-vlc - vlc-delete - VLC extension to remove videos from the hard disk. (VLC lua extensions)
README
# Install
## Windows
Copy `vlc-delete.lua` to `%appdata%\vlc\lua\extensions\` and restart the VLC Media Player.
### Installation script (requires Windows 10 / curl)
```bash
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
```## Linux
Copy the `vlc-delete.lua` file to `~/.local/share/vlc/lua/extensions/` and restart the VLC Media Player.
### Installation script
```bash
EXTENSIONS_FOLDER="$HOME/.local/share/vlc/lua/extensions"
# EXTENSIONS_FOLDER="$HOME/.var/app/org.videolan.VLC/data/vlc/lua/extensions" # for Flatpak
# EXTENSIONS_FOLDER="$HOME/snap/vlc/current/.local/share/vlc/lua/extensions" # for Snapmkdir -p "$EXTENSIONS_FOLDER"
curl -# -o "$EXTENSIONS_FOLDER/vlc-delete.lua" "https://raw.githubusercontent.com/surrim/vlc-delete/master/vlc-delete.lua"
```Note: If [trash-cli](https://pypi.org/project/trash-cli/) is installed videos will be moved to the recycle bin instead of removing them directly.
# Usage
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.
# Known bugs and issues
- There is no *fixed* shortcut key; it depends on the menu language.
For instance in English: Press and hold `Alt` to activate the hotkey navigation, then press `i` (`Vi̲ew`), then `r` (`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](https://github.com/DanKaplanSES) and [abramter](https://github.com/abramter)
- Windows: UNC paths like `\SERVER\Share\File.mp4` are not working.
As a workaround, you could use `net use P: "\uncpath"` in the Windows terminal and open the file with a regular path.
Thanks for contributing [Taomyn](https://github.com/Taomyn) and [freeload101](https://github.com/freeload101)
- Windows: Video can't be deleted if the file name contains emojis.
Thanks for contributing [Jonas1312](https://github.com/Jonas1312)
- Does not work with VLC portable edition
Thanks for contributing [fun29](https://github.com/fun29)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.