Server Version#: 1.30.0.6486
Synology DMS Version#: DSM 7.1.1-42962 Update 3
For most TV shows, I have enabled that episodes get deleted automatically by PMS after a day; this works but where do the deleted files actually go? I can’t see them in any recycle bin on my NAS.
I used to use a Mac mini to run PMS and there I always found the deleted episodes in the bin; but I’ve switched to using a NAS recently and noticed that deleted files seems to vanish.
Go to Control Panel > Shared Folder. Select a shared folder and click Edit.
Tick the Enable Recycle Bin checkbox.
Tick Restrict access to administrators only if you want Recycle Bin to be accessible for administrators only.
Click OK to save the settings.
To empty Recycle Bin for a shared folder:
Go to Control Panel > Shared Folder. Select a shared folder and click Edit.
Click the Empty Recycle Bin button to remove all deleted files in the recycle bin permanently.
To empty all Recycle Bins:
Go to Control Panel > Shared Folder.
Click Action > Empty all Recycle Bins to remove deleted files in all recycle bins permanently.
Note:
You can configure the privilege settings of the Recycle Bin folder. Go to File Station, select a shared folder, right-click on the #recycle folder, choose Properties, and click on the Permission tab.
ah - thanks @ChuckPa - at least that explains why those files simply vanish; would be nice for Plex to utilise the recycle bin so that it matches the behaviour on other platforms like macOS;
something like this could work:
if [ -d “…/#recycle” ]; then cmd=‘mv foo.mp4 …/#recycle’; else cmd=‘rm foo.mp4’; fi; exec $cmd
you would need a bit more logic to find where the bin is as the starting dir could be much deeper down but essentially this could easily be done.