Help with bulk restoring files from trash

Hello,

I accidentally deleted all files from my user and this massive amount of files is now in the trash. Is there a possibility to bulk restore it?

The server is running the latest version in docker in Linux.

Thank you

I just ran into the same thing. I could see them in trash however would need to endlessly click to restore. I couldn’t find a bulk restore feature so I wrote some jQuery to at least automate the restores. In Chrome DevTools try the following when looking at the trash page.

var jqry = document.createElement('script');
jqry.src = "https://code.jquery.com/jquery-3.3.1.min.js";
document.getElementsByTagName('head')[0].appendChild(jqry);
jQuery.noConflict();
jQuery("table.table-hover a.invisible").each(function() {
  $( this )[0].click()
});
2 Likes