Tag Info

Hot answers tagged

4

Have you tried using the "recycle" command using the REST API? (not using HTTP DELETE) Endpoint URI structure: http://<sitecollection>/<site>/_api/web/lists(listid)/items(itemid)/recycle() Please refer to the documentation regarding recycle on MSDN: http://msdn.microsoft.com/en-us/library/jj247053.aspx


4

I think you will need to have some algorithm for it. Below is one which may help: Maintain the deleted sites Url and GUID in a list.You can do it using SPWebEventReceiver.WebDeleted.Also,Before it gets deleted, modify its home page to a new html like page that says "Under Construction". Create a job and monitor the list for deleted site restoration. To do ...


4

Don't know if there is an OOTB solution for this. I couldn't find one. I was able to find something interesting though. you can search Recycle bin using PowerShell example : (Get-SPSite "http://SERVERNAME:PORT/").RecycleBin | ?{$_.Title -match "DeletedFile"} Source Now you can use c# and PowerShell together and write a custom search solution.


3

In order to recuperate the space you will need to manage your SQL Server database files (MDF/LDF). My suggestion is that unless your disk space is critical that you not do this. Shrinking databases has some serious implications for performance and can cause some headaches. IMO, unless you really need the disk space, just leave it. Here are some sources to ...


2

Although it is certainly possible modifying the internal /_layouts/RecycleBin.aspx page, I personally stay far away from this approach for several reasons (supportability and maintenance to name only two). Instead I'd recommend the approach outlined here http://sharepointmagazine.net/articles/custom-page-security-using-sharepoint-delegate-controls with a ...


2

The following powershell script will delete all items in the site collection recycle bin and recycle bins of each of the webs in the provided sitecollection url: [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint"); $site = new-object microsoft.sharepoint.spsite("SITE COLLECTION URL"); for ($i=0;$i -lt $site.allwebs.count;$i++) { ...


1

A Site considerably different from a Site Collection in that a site is simply a child web of the site collection whereas the Site Collection is the top level data container. Only deleted sites appear in the recycle bin because the recycle bin itself is contained in the Site Collection. If you delete the Site Collection, you are deleting the recycle bin as ...


1

Site Owners only have access to the Recycle Bins at their site level. If they need access to the site collection recycle bin, they either need to be listed as a site owner for the collection in Central admin or listed as a site collection admin in the root site collection site settings. If that isn't desirable, then the owner will have to notify the site ...


1

It might help you with your question, Select Site/Web where your document library is located using these two drop down menu lists which are auto populated when you open speventreceivermanager's exe file as shown in picture below, Now select your document library from list of libraries on left side, When you will click on your doc lib, you will see all ...


1

I have solved this issue. There is such property as LeafName in SPRecycleBinItem, which is the same as earlier Id in SPListItem for files (not for folders). If SPListItem was a file, then its LeafName would be "id" + "_.000" after deleting; If SPListItem was a folder, then its LeafName would be earlier Name of SPListItem.


1

The SPRecycleBinItem has the unique GUID which is the same before and after deletion. Therefore, you can retrieve it using the code below: SPRecycleBinItemCollection itemColl = web.GetRecycleBinItems(q); foreach (SPRecycleBinItem item in itemColl) { Guid[] id = new Guid[1]; id[0] = item.ID; //Gets the GUID of the item. }


1

If you are talking about the second-stage (site collection) recycle bin, then the recycle bin storage does not count against the site quota, but the size specified for this recycle bin increases the total size of the site and its content DB. To answer your question, it depends on your business SLA. Depending on your business needs, you can adjust this ...


1

The recycle bin storage counts against the storage space quota. So if you have a site collection with a 100GB quota, it will occupy 50 GB when full and cut your available space allocation to 50 GB. It isn't on top of, but inclusive. From storman.aspx "Items in the recycle bin count against the storage quota."


1

There is a post which details about a custom web part which can search the recycle bin items- http://allaboutmoss.com/2011/11/04/recycle-bin-search-webpart-for-sharepoint/ Add this web part into a custom page and the results could be displayed in a grid, where each site or entity could be checked(using a checkbox) and restored by click of a button. ...


1

As far as I know no one other than a Site Collection Admin can delete a SP Group. Make sure that group is deleted by a SC admin. On the other hand, if you look at the privileges associated with Full Control permission level (...or any permission level for that matter), you'll notice that there is no permission for Delete Group, so this permission cannot be ...


1

There are multiple ways to do this. I couldn't find a sharepoint specific setting for this. Maybe there is one somewhere.. Anyways, Personally, I'd just edit the /_layouts/RecycleBin.aspx page and remove the button. Create a copy of the page though before editing it. Find the following control and add the Visible="false" Attribute : ...



Only top voted, non community-wiki answers of a minimum length are eligible