I need a powershell command which deletes the second stage recyclebin and the possibilities are stated below
Possibilities :
->If it is possible to get a script wherein if we give an user name for ex Deleted By “THEJA,Mr.RAVURI(THEJA)”,it should delete the all the files which were deleted by user.
->Another possibility is get the files based on Deleted which is like, the script should delete all the files which were deleted on specific date.
->to delete all the files which are present in the Admin recycle bin.
->to delete first “n” number of files which are present in recyclebin with ascending or descending order.
Many thanks in Advance and let me know if you require any clarifications on this
Theja.
Hi Ajeet,
Many thanks for the reply.Sorry for not giving more details.
The script which you have provided me is applies for entire web application(to my knowledge).I need this script to be run for a dedicated site collection like “https://sharepoint.test.india.com/sitebasic”.It would be very much helpful for me if you could provide the same for targeting dedicated site collection.
Many thanks for your time and help.
Theja.