Empty Recycle Bin using java script
Introduction:
With SharePoint User level recycle bin(that is displayed in Quick Launch), there is no way to ‘Empty’ the recycle bin in a single go. We have this option in Site Collection Recycle Bin. May be this is done deliberately to prevent users from deleting all items by accident! This is definitely a fallback from developers perspective.
Description:
A way to Empty the recycle bin without going through the pain of manually deleting each of the files or selecting the files and clicking on the ‘Delete Items’ button.
· Open your SharePoint Recycle Bin Page by clicking on the Recycle Bin icon on the Quick Launch.
· Simply copy the below JavaScript statement into the address bar and click Enter.
javascript:emptyItems();
Note:
Be careful as all of the items will not be to sent to Site Collection Recycle Bin. This a good tip for development phase.
Comments
Post a Comment