Empty Recycle Bin - Episerver 6

If you run into an issue with the recycle bin not emptying in Episerver 6 this query may help.

Please only run this if you have exhausted all other options

Run the following query against the database

-EXEC editDeleteChilds @PageID =2 @ForceDelete = 1)  //where 2 is the ID of recycle bin. 

Please backup the database before running above query. Also please make a backup copy of the database and restore it locally and perform this operation.

Once confirmed to solve the issue locally, run the statement on the production database taking the same precautions for backups as above.