登录:     


Forum: General Discussion

Topic: Deleting files within Virtual DJ
Hi
If I right click a file in Virtual DJ and select "File Operations > Delete", it deletes the file from the disk, but leaves it in the Virtual DJ database & I have to then manually research and remove it, otherwise it still appears in searches, is there a reason for this I can't see or is it possible to remove a file from the database when you delete it automatically.
Thanks
 

发表时间 Sun 21 Sep 25 @ 9:35 pm
I'm pretty sure that's not true overall - I've deleted a file as recently as today from the browser interface and the track did not show up in future searches (MacOS).
The track still resided in the database.xml when I checked, but a Clean Database removed it.
 

I do a remove from search DB then file delete if I want it permanently erased.

I think it's left in the DB in case you decide to use the same track again and all the previous info is still there.
 

Yes, when you delete a file from within VirtualDJ, VirtulDJ marks the file as missing and removes it from search results, but it does NOT remove it from the database completely. That's by design.

Main reason is that the info associated with this file may also be used elsewhere (e.g. in a history file)
 

I will double check if it appears in manual searches on my machine, I assumed it did because deleted files still appear in filter folders I have created, on my 'recently added' filter folder, if I delete a file it will still appear there and I am pretty sure it appears on my other filter folders too.
Since I use filter folders a lot to vary my playlist, deleted files still pop up.
It makes sense not to delete it from the database I suppose, but it would be nice if it didn't appear in filter folders by default, although then I suppose the filter "Exists" wouldn't work!
 

You can always add & Exists=1 on your filters to make sure that you're seeing only files that are present at the time.

Also if you have complex filters just use parentheses:
( blah blah blah = my complex filter script) & Exists=1
 

PhantomDeejay wrote :
You can always add & Exists=1 on your filters to make sure that you're seeing only files that are present at the time.

Also if you have complex filters just use parentheses:
( blah blah blah = my complex filter script) & Exists=1


Yeah I considered that myself I just wasn't looking forward to manually editing a pile of advanced filters, it's actually easier to manually search for missing files and remove them from the database than go through all that tbh.