So, were you aware that once an item is placed in the trash in WordPress, it will automatically delete it after 30 days if you don’t restore it?! Our team has found this to be very annoying especially when you are trying to save files for a later purpose only to find that they somehow disappeared!
You need not fear, there is a way to keep files in the trash longer than 30 days. The following article had detailed directions to do so. You just simply add a small amount of code to your theme’s functions.php file or a site-specific plugin. The article also provides some other helpful tips so check it out!
WPbeginner: How to Limit or Disable Automatic Empty Trash in WordPress