Tag Info

Hot answers tagged

5

No, Recyle bin is not a List like other document library and lists. Yes you can Query Recyle Bin item like SPWeb.GetRecycleBinItems Method http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spweb.getrecyclebinitems(v=office.12).aspx All files are internally stored in Content DB in Sharepoint. Once it is Deleted permanently from Sharepoint, they ...


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.


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 ...


3

Have you check both recycle bins, default recycle bin and the site collection recycle bin? And how long ago was it deleted? It's possible that based on the configuration of the recycle bin that it's been deleted long enough that it met the retention date and was removed.


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

Cause: There is different way to delete permission group, mistakenly I have deleted the group from "Permission Tool->Remove user permissions" which shows permission group deleted but it still doesn't allow creating a new group with the same name Cause/Solution-> Deleting group from "permission Tool-> remove user permissions" doesn't delete the group if you ...


2

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 ...


2

There are two options in sharepoint to delete the listitem: listitem.Recycle() deletes the list item and puts it in the recycle bin listitem.Delete() deletes the item permanently If you delete a document in SharePoint using the User Interface, it’s being moved to the Recycle Bin, so that it can be restored if necessary. Calling the SPListItem.Delete() ...


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++) { ...


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 ...


1

Well, I didn't notice a parameter which was the key to achieve this: -GradualDelete. So, knowing this, Remove-SPSite -Identity "https://host/site" -GradualDelete does the trick and the site appears at Get-SPDeletedSite. Thanks everyone for your time and answers.


1

This has more to do with the differences between sites and site collections. Site Collections do not go the the site collection recycle bin. That would be impossible since you cannot put a site into its own recycle bin. There is what is known as "Deleted sites", if that is what you are looking for, please see here.


1

No it is not a list, it's work on the same concept as we have in windows. yes you can access it via powershell or other ways. here is powershell example. # recycle bin's are tied to a site collection so we need a site collection object $site = get-spsite http://www.yoururl.com #we can see everything in the recycle bin like this: $site.Recyclebin ...


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 : ...


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

Goto central admin - application managment - manage web application - select web application - then select general setting to on = having the second stage bin on for site collection admins only! setting to off = no second stage bin. If you have it on: select after x ammount of days and click on add x ammount of percent. check to see the quota and if ...


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

Personally I have never had an issue when shrinking SharePoint DBs - Keep in mind I am only releasing the white space, but have had no performance impact to any of my sites


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

Got the Same issue. I deleted a sharepoint Security group in my site collection and tried to Create a Sharepoint group with same name. I got the error that 'You can't delete the group because it is already exists'. I was logged-in to SharePoint designer in the security groups Removed the current group what i need to create. Thus the group deleted and i was ...


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 ...



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