If you have a site that handles an extensive amount of content node data resulting in your recycle bin becoming large, then this simple package can assist in keeping the Recycle Bin at a manageable level.
Whilst the Recycle Bin does not impact on the performance of the site per se, I thought this a useful piece of functionality to help keep the database up to date as much as possible with respect to content.
The package uses a mix of the Umbraco scheduled task functionality and Rest Extensions (with some configuration options) so that you can "set and forget" it on your site and the amount of data in your Recycle Bin will be automatically managed for you.
To achieve the deletions I have used a mix of SQL (to get items in the recycle bin) and Umbraco API functionality (to delete items). There are posts about achieving this via SQL alone, however there is a real risk to the integrity of the data within the database doing it this way.
The rest extension is configured to take the following 2 parameters.
If you find this package useful please add your vote - it helps me to know it is being used and found useful, and therefore continued development is justified. Cheers
Release 1.1 - BUG Fix
The number of days delay was not being subtracted from the current date.
If you have previously installed this package, then to update your site simply download the package and drop the dll files into your site. There is no need to install the package.