MPV Scripts

Script: delete_file.lua

Description: This script prompts users to delete the current file when quitting mpv with the "q" key. If the user presses "y", the file is deleted.

Installation:

  1. Download delete_file.lua.
  2. Place it in your mpv scripts folder (~/.config/mpv/scripts/ for Linux/MacOS, %APPDATA%\mpv\scripts\ for Windows).
  3. Restart mpv.

Usage:

  • Press "q" to quit playback. You'll be asked if you want to delete the file.
  • Press "y" to delete, "n" to cancel.

Note: File deletion is permanent. Make sure before confirming.

Support: Report issues or suggest improvements on this repository.