Deletion is a way of removing a file from a computer's file system or removing a file stored in an database.

learn more… | top users | synonyms

10
votes
4answers
14k views

How to delete the undeletable list

Somehow a developer has managed to royally screw up a site collection. The site collection has the Publishing Feature enabled and it's working fine. A botched migration from 2007 to 2010 has caused ...
8
votes
1answer
1k views

REST list item delete does not go to Recycle Bin

I have a SharePoint 2013 autohosted app with a number of lists inside of it. I would like to be able to soft delete a list item using the REST API and have it go to the Recycle Bin instead of being ...
6
votes
4answers
4k views

How to run javascript code only when list item gets deleted?

ANSWERED! See bottom of original question for the working answer. I'm trying to find out how I can run a piece of JavaScript code the moment a list item gets deleted. So it should be some sort of ...
5
votes
9answers
16k views

How to delete all items in a List using PowerShell

I am using following PowerShell script to delete all items of the List. It's working fine but take too long for huge lists. Is there any efficient way of clearing list items, something like truncate ...
5
votes
1answer
124 views

Upgrading from SharePoint 2010 to 2013, deleting content database

Why do we delete the content database of a new Web Application while upgrading from SharePoint 2010 to 2013?
5
votes
2answers
305 views

Delete a 60GB list

I have a runaway list which - due to a recursive workflow and versioning - has grown to 60GB. We are now trying to delete it. It is in the recycle bin, however I want to remove it completely. If I ...
4
votes
5answers
8k views

I cant delete or restore a site collection or repair database

When I try to do a restore of a site collection, restore-spsite -Identity https://xx/10014628/ -Path D:\SiteCollectionBackups\10014628.bak -Force -Confirm I get: restore-spsite : ...
4
votes
1answer
12k views

Disable the delete option from Sharepoint list 2010

I have a custom list in SharePoint 2010, for which, the requirement is to disable the delete option. Users should be able to add to the list but not delete. Is there anything oob for that?
4
votes
1answer
2k views

Cannot delete file: “checked out to -1;#”

I am trying to delete a couple of files from a document library, but SharePoint 2013 tells us that "the file is currently checked out or locked for editing by another user". However, when attempting ...
4
votes
1answer
157 views

Deleted user - Remove link to UserDisp or Person page

I'm trying to figure out what removes links from Created By/ Modified By fields for a deleted user? To elaborate I have a user who no longer exists in LDAP source, so does not exist in UPA and in ...
3
votes
2answers
1k views

How can I see what documents have been deleted from a Document Library?

I have a document library that had files in it yesterday. Today it does not. When trying to view some sort of an audit log I realized I didn't know how to. I'm using SharePoint 2013 Online. How can I ...
3
votes
1answer
827 views

How to remove duplicate EventReceiver entries

Lately i had a bug that time-to-time added duplicate event receiver entries in SPEventReceiverDefinitionCollection. So how do i easily enumerate and remove these duplicate entries?
3
votes
2answers
711 views

Cannot delete site collection in Central Administration

I had created a site collection. But there is a problem of web-frontend server (I did not know when I created the site), so the page is always in processing. After waiting 40 mins, I closed the page. ...
3
votes
1answer
2k views

Delete list items and bypass recycle bin

I have a list with about 15,000 items and I need to empty it by permanently deleting everything in the list. I have other items in the recycle bin that I don't want to disturb. Here's the script I'm ...
3
votes
1answer
277 views

Get actual item from SPRecycleBin

Similar to this question, I need to permanently delete only specific items from the recycle bin. I need to know more than just their names, however, and SPRecycleBinItem seems to have only have a ...
2
votes
1answer
1k views

Broken Lists Cannot Be Deleted

There are a few lists in a SharePoint Server 2010 development environment that are broken. Due to this situation, clicking the lists in the SharePoint Web interface throw .NET exceptions, and viewing ...
2
votes
2answers
3k views

Preventing users from deleting an item from a task list

I am using the ItemDeleting event receiver to prevent users from deleting items in a Task List. Currently, my code looks like: if (properties.ListTitle == "Project Intake Tasks") { ...
2
votes
2answers
477 views

Does SPWeb.Delete() Dispose of the object?

I recently got a comment on my Deleting a site with subsites programmatically article about properly disposing of SPWeb objects after they've been deleted: Don’t forget to dispose the deleted web. ...
2
votes
2answers
5k views

Cannot delete document, error: The file is currently checked out or locked for editing by another user

I am using sp2013 onpremise. I have an document library named Documents. I have add a new word document. I try to remove this document, but it give me an error: Het bestand is momenteel uitgecheckt ...
2
votes
1answer
60 views

Deleting a blog post leaves related .png files in Photos list

I used the blog template when creating a new subsite within mysites and in the process an associated list called Photos got created. While this has worked well, I've noticed that when I delete a blog ...
2
votes
1answer
988 views

Prevent a group from deleting document version history

In a Document/Form Library with versioning enabled (SP 2010), it is possible to delete all versions of a particular document/form simply by going to the "Version History" dialog box. This ability ...
2
votes
2answers
1k views

Unable to delete item via ribbon Delete Item button

I have a generic list of items in SharePoint 2010. When I select an item with the left column checkbox, then select Delete Item from the ribbon, the item does not delete. Looking at the traffic in ...
2
votes
0answers
579 views

How to delete a Task that is associated to an item and workflow that have been deleted

I have a task that is associated with an item (in another list) that has a running workflow. However, the item was deleted over a year ago and therefore it is no longer recoverable from the recycle ...
2
votes
0answers
142 views

Deleting or removing users from a workflow, after if they no longer need to complete the task [closed]

A user has created a workflow with multiple participants. One of the participants assigned a task, no longer needs to complete that task. How can we remove the user or task without the workflow status ...
1
vote
2answers
501 views

How to prevent site collection admin delete his site collection?

We need to avoid our users, who are "site owners", delete his site collection by mistake. The only method I think of is use Jquery to hide/disable the "Delete this site" button. Do we have other way ...
1
vote
1answer
232 views

Delete a list with 4000 items

I have a sharepoint list which has grown above the maximum recommended size of 2000 items. I need to delete the list. If I delete it through the browser, will there be any impact on the farm? Will ...
1
vote
2answers
2k views

Client Object Model : “Microsoft.SharePoint.Client.ServerException: The request uses too many resources”

When deleting 1000+ (link) items from a list in one batch using the COM, I encountered this exception : Microsoft.SharePoint.Client.ServerException: The request uses too many resources It seems ...
1
vote
1answer
1k views

Can't delete List item after setting lookup deletion to restricted

I have a List Item and I wanted to delete it. It's nothing special at all, but it fails. I have two lists, Company and Company Contacts. Each Company have 0...n contacts. A company can't be deleted ...
1
vote
1answer
263 views

How to delete data from AuditData table that does not exist any more?

Our auditData table is growing and growing. I was able to delete some data using the powershell script: foreach ($site in get-spsite -Limit ALL) { $site.Audit.DeleteEntries("05/01/2013") ...
1
vote
1answer
586 views

Destroying a field which gives error in Content Enrichment Web Service

I’m writing a Content Enrichment Web Service that is used as an extension to the Content Processing component in my Search Service Application. The web service runs as expected at localhost. I have no ...
1
vote
1answer
176 views

Cannot open Workflows list after deleting a workflow

I deleted a workflow from SharePoint designer and now whenever I try to open the Workflows dialog on a list item it gives me the "An unexpected error has occurred" box. I suspect that this is because ...
1
vote
1answer
467 views

MySite My Content deleted

A SharePoint 2010 My Site application has suddenly deleted all data from the "My Content" area of users' profiles. Does anyone have any experience of this or know what the cause is? There were custom ...
1
vote
2answers
3k views

SharePoint 2010 - Unable to delete list item

I have to delete list item but not able to do due to some permission issue : 1. Ribbon 2. Powershell 3. Information Policy Management 4. Logging through site collection admin / App pool account ...
1
vote
2answers
858 views

Recycle bin - documents deleted

I have recycle on my site collection. There is also and event receiver which deletes some documents from library in ElevatedPrivileges block ( as System account). OnItemDeleting it's searching for ...
1
vote
2answers
266 views

Unable to delete site outside of site collection

In a fresh install of SharePoint 2010, I naively built a site without first creating a site collection to put it in. The site sites in the root of the server's URL space (i.e. it is simply ...
1
vote
1answer
29 views

MissingSetupFile issue - file does not exist

I am trying to get rid of the health error [MissingSetupFile]. I followed some guide to get (querying the contentDB) the Id of the file (and of the Site and Web). The issue is that the file does not ...
1
vote
1answer
85 views

Cannot delete content type - possibly because it's referenced in SharePoint's UI

I created a content type to play around with. I created a publishing page based on this content type, but after deleting the page (and clearing the recycling bin) SharePoint won't let me delete it. ...
1
vote
1answer
49 views

Undeletable/Unhideable/Unchangeable fields in Calendar List

I am making a Calendar in SharePoint, but I have some problems with the Title and Description fields. I don't want the Description field at all, but I am unable to delete it in SharePoint Designer. ...
1
vote
2answers
174 views

delete sp.listitem in client object

I've an issue to delete document in a document library. I did not get any exception but document is not getting deleted clientContext.Load(oldItem.File); oldItem.DeleteObject(); oldItem.Update(); ...
1
vote
1answer
39 views

Problem Deleting Item from Sharepoint Calender list

I have 2 calender list Name A and B. when i delete items from list A, it should delete item from list B. List A items get deleted successfully but list B items throws SpException. but when i again run ...
1
vote
1answer
78 views

Delete field office for all users SP2013

Is there a way to delete the values of User Profile Property Office for all users via Powershell or CA?
1
vote
1answer
573 views

Delete option grayed out in sharepoint, User has read write permissions

Hi im having an issue with a user who has all required permissions to read/write on sharepoint, but cannot delete pages she has created. when you hover over the delete option i get "this control is ...
1
vote
1answer
42 views

How to delete a group, of which I am not an owner, in a subsite

I have created a subsite in my site and then the owners group for that subsite. I was a member of that group and I believe the owner was set to the group itself. Then I deleted myself from the group, ...
1
vote
1answer
412 views

what is delete command for sharepoint menuitemtemplate

MenuTemplate menuTemplate = new MenuTemplate(); menuItem = new MenuItemTemplate("Delete document", "/_layouts/images/delete.gif"); menuItem.ClientOnClickScript = ""; // What should I put ...
1
vote
1answer
463 views

SPList.Delete() vs. SPWeb.Lists.Delete(SPList)

Assuming I already have the list object, is there some difference between calling its Delete extension as opposed to removing it from the Lists collection? Why would I ever choose the latter?
1
vote
2answers
1k views

Delete Excel file in SharePoint 2010 library only by using VBA

I am having a excel workbook. When a person click on the marco the files are saves to two new folders need to delete a Excel file on SharePoint. I have tried the "Kill" function in Excel VBA, but is ...
1
vote
0answers
23 views

How to find and remove all banners related to a campaign page?

at the company I work for we manage a large SharePoint installation. Recently our client asked us to delete all banners related to an old campaign. The banners are all pointing to the same page. Is ...
1
vote
1answer
433 views

SharePoint 2010 - Delete user profile

Organization Browser in mysites was still displaying users who were disabled or deleted from Active Directory. We did not turn on the SharePoint 2010 My Site Cleanup Timer Job because it sends emails ...
1
vote
0answers
69 views

Deleting files is slow

I noticed recently that when I delete files or list items (1 or 50) it takes about 1-2 minutes to process. Also, if I delete multiple files it times out and some files are not deleted. Has anyone had ...
1
vote
0answers
1k views

Cannot delete a folder in a library

I am replacing a colleague for the support of a SharePoint 2010 intranet. I want to delete a folder in a library. The folder to delete is special : I can see the folder in the intranet I cannot see ...