RealDelete
VLC Extensions
Score 52%
Description:

Deletes currently playing file from disk and from playlist.

Usage (Windows):
1. Name extension file realdelete.lua and copy it into VLC extensions folder
e.g. C:\Program Files (x86)\VideoLAN\VLC\lua\extensions\realdelete.lua
2. restart VLC; extension should be visible under View menu

Tested on Windows 8 & VLC 2.1.1
Supports only ASCII file names.

License: GPL http://www.gnu.org/licenses/gpl.html

You use this extension at your own risk - author cannot be held responsible
for any direct or indirect damage caused.

Based on:
* Diskdelete 0.2 by Mark Morschhäuser
* https://forum.videolan.org/viewtopic.php?f=29&t=108811
(users 147852369, mederi)
People who provided code fixes:
* http://addons.videolan.org/usermanager/search.php?username=ecurtain
* http://addons.videolan.org/usermanager/search.php?username=test4test
* http://addons.videolan.org/usermanager/search.php?username=SgtPepper76
Last changelog:

2 years ago

Added support for network folders on Windows.
Extension no longer shows error messages because widget manipulation caused VLC to crash. So errors will be visible only in console.
Fix for freezing by SgtPepper76 (v1.5).

h3ll

2 months ago

Not working VLC freeze ... tried playing around with it trying to fix it but failed...any instruction like os.execute after vlc.playlist.next() or vlc.playlist.stop() will make it freeze I don't know I'm no expert and this is my first lua script manip

so ended with this solution

1- start my own program written in c# (which call itself until the file no longer in use by vlc)
2- play next file
3- delete from playlist

lua code :
os.execute('c:\\deletevlc.exe "'..filepath..'"')
itemId = vlc.playlist.current()
vlc.playlist.next()
vlc.playlist.delete(itemId)
vlc.deactivate()

I need this so bad and now it makes me mad because can't bind it to a keyboard shortcut -_-

using win7 64
vlc 2.2.6

Report

SgtPepper666

7 months ago

Now I have found the reason for the freeze problems.
And the bad news: We can't fix it. We only can hope that VLC 3 brings LUA 5.2 support. Maybe - then we can fix it.
The reason is: LUA 5.1 (wich is compiled in VLC) uses for command to console and filenames UTF-8.
Windows Systems uses UTF-16 or higher. For other systems i dont know.
So when the file contains a special sign, like ä or something, the file could't be found.
I've try hard to make a workaround but i failed.

Greetings SgtPepper76

Report

calculon102

1 year ago

This extension did not work for me, especially not in the context of manually batch processing a large playlist. Therefore I created my own: http://addons.videolan.org/content/show.php/BatchFileDelete?content=176275 (BatchFileDelete)

I did however reuse the style of the dialog from this one, so thanks for that!

Report

YaSo

1 year ago

Is there a way to add a keyboard shortcut to permanently delete files?

I ripped my aunt's cd collection to a thumbdrive for her to play in her USB - MP3 ready new car as a gift, and wish for her to be able to put the thumbdrive in her PC, open the albums in a VLC playlist, and delete songs she doesn't want. Thanks!

Report

seyss

1 year ago

this crap doesn't work.. take it down or fix it

Report

SgtPepper76

1 year ago

There ist a Frozen Bug in this Code.
But you can fix ist manualy in source in funtion close():

the original sourcecode-line:
--d:delete() -- close and delte dialog

must be replaced by:
d:delete() -- close and delte dialog

Now its works fine...
The Error is: You must close the Dialog first bevore deactivating the menu-entry.

Have fun with this great tool!

Report

C

suchwalko

1 year ago

I hope you are right, because just now I uploaded new version with your fix :)

Report

avegotten

2 years ago

Hey, thank you for making this. I have a request. Could you add an option to move the file to a specified directory? or perhaps a option to move to the recycling bin.

Once again thank you for this Add-on

Report

test4test

2 years ago

In VLC 2.1.5 the addon hangs after delete. The dialog-box is froxen.

Please fix it for Playlists from Net-Folders.
The line
filename = string.sub(filename,9) -- remove 'file://' prefix which is 7 chars long

deletes to many character.

Report

ecurtain

2 years ago

I needed to shorten the shortcode description:

shortdesc = [[Delete file for Real]],

but otherwise the addon worked fine

Report

ecurtain

2 years ago

I needed to shorten the shortcode description:

shortdesc = [[Delete file for Real]],

but otherwise the addon worked fine

Report

stickybounce

2 years ago

After pressing "Delete" it played the next song in the playlist but VLC was "Not responding"...

Tested with VLC 2.1.5 on Win 7 x64 Pro

Report

2 years ago

Added support for network folders on Windows.
Extension no longer shows error messages because widget manipulation caused VLC to crash. So errors will be visible only in console.
Fix for freezing by SgtPepper76 (v1.5).

product-maker stickybounce Nov 13 2014

product-maker 6 6

File (click to download) Version Description Filetype Packagetype License Downloads Date Filesize OCS-Install DL
Details
version
updated Aug 18 2017
added Nov 13 2014
downloads today
0
page views today 4