Questions tagged [delete]

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

Filter by
Sorted by
Tagged with
20
votes
1answer
5k 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 ...
19
votes
5answers
24k 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 ...
12
votes
3answers
20k views

How to delete O365 Team Sites

Firstly, I apologize if I'm not using correct terminology. I am pretty new to SP. In our case, we're using SP Online. After logging into O365 and clicking on the "SharePoint" main icon, it takes us ...
10
votes
10answers
40k 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 ...
8
votes
4answers
11k 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 ...
6
votes
1answer
6k views

SharePoint 2013 - Deleted subsites not going in Recycle Bin

I am a bit confused with regards to the Recycle Bin when it comes to SharePoint 2013. A few quick Google searches suggested that when one deletes a sub-site, the site will not be permanently deleted ...
6
votes
6answers
45k views

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

I am using SP 2013 on-premise. I have an document library named Documents. I have added a new Word document. I try to remove this document, but it gives me an error: Het bestand is momenteel ...
6
votes
3answers
2k views

Disable 'delete item' from SHP list

I need to disable item deletion for "users" in one list, but they need to be able to add new items. Any suggestions?
6
votes
2answers
358 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 ...
6
votes
1answer
1k views

Remove and recreate all personal sites - mysites - remove them from DB without waiting ~25 days

Is there a easy way to remove (delete) all personal sites and recreate them all over again? I also want to delete them from the sql. I've tried to delete personal sites and run my site clean up job ...
5
votes
3answers
9k 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. ...
5
votes
1answer
28k 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?
5
votes
1answer
132 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?
4
votes
5answers
12k 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 : <nativehr>...
4
votes
1answer
281 views

Missing delete attachments button

I have Calendar wherein the EditForm ListFormWebPart the button needed to delete an attachment is missing on some (almost all) attachments. I'm Admin so I don't think the problem is regarding ...
4
votes
2answers
4k 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 that ...
4
votes
2answers
2k views

How can I delete a list item with a workflow without it skipping the Recycle Bin? [SPO]

I created a very simple 2013 List Workflow in my SPO site using the designer. It does 3 things: "Delete item in Current Item" then Email "my email" Go to "End of Workflow" It deletes the item, ...
4
votes
1answer
7k 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 ...
4
votes
1answer
1k 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?
4
votes
2answers
18k 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. ...
4
votes
1answer
3k 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
635 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 ...
3
votes
1answer
2k 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 ...
3
votes
2answers
9k views

Powershell - Delete / remove all site collection under a spesific managed path

I've created a managed path for my team sites - called "workspaces". All team sites Have been created under the same managed path. ex: http://awesome.com/workspaces/teamsite1 http://awesome.com/...
3
votes
2answers
3k 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
2answers
223 views

Delete more than 1 List item based on Closing date in SPS2013 List

I`ve created a workflow from SPD2013 for SPS2013 List, that will delete the list item based on closing date equals to today. Issue, it does it for the only one item, even though if there are more ...
3
votes
1answer
73 views

Recycle Web, NOT permanently delete with PowerShell/CSOM

In SharePoint Online is there a way to send a Web (a sub site) to the site collection recycle bin via PowerShell/CSOM? I know that a web can be deleted with Web.DeleteObject() but this does a ...
3
votes
1answer
782 views

Cannot delete Files they just re-appear after deletion

Hi to anyone who can help. I am currently unable to delete files from my SharePoint document folder. I just need to delete some excel files but it's proving to be impossible. We have not had this ...
3
votes
2answers
610 views

Difference between listitem Delete and File Delete

I am trying to figure out the internal difference between SPListItem.Delete() and SPFile.Delete(). I wrote a quick PowerShell to delete a document from document library. In my test, I used recycle() ...
3
votes
1answer
439 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 ...
2
votes
3answers
3k views

Error on recreating web application

I've written a powershell script to create a web application, add libraries and pages, etc. As I work through the script and fix bugs and issues, I delete the web application through central ...
2
votes
2answers
5k 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
758 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
1answer
498 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 ...
2
votes
1answer
884 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") ...
2
votes
1answer
646 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 ...
2
votes
3answers
61 views

Delete all files added to SharePoint today

I would like to be able to delete all files added today (files could be added to different folders within the document library). The Created and Modified field has the date the file itself was created,...
2
votes
2answers
5k 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 ...
2
votes
1answer
158 views

Deleting more than 300.000 document versions

My customer has a Page Library with versioning enabled and no versions limit. There is pages with more than 300.000 versions. I need to delete all old versions, but keep safe the 5 newer versions. ...
2
votes
1answer
68 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
4k 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
11 views

Workflow does not execute all parallel actions (Nintex)

Workflow does not execute all parallel actions Dear community, I am quite new to work with Nintex and so is my company. I could not get any support from my company so I try my luck here. We have ...
2
votes
0answers
36 views

“Preparing to delete” message box — what's going on behind the scenes?

I'm currently attempting to delete a folder located within a document library that has 5000 subfolders, and each subfolder contains 2-7 files, totaling just over 6GB. The problem is, whenever I ...
2
votes
0answers
977 views

Items stuck Checked Out, can't check in

I'm doing a purge of a bunch of list/libraries used in a QA environment (using the script found here) and have run into a snag where 3 items in a particular library are checked out to a user but I am ...
2
votes
0answers
507 views

Unable to Delete Managed Property (Error Code 11) - SharePoint Online

I have managed property created with PowerShell using schema. Now I don't want to have that property anymore, so for that I am simply going in Office 365 admin center site and deleting the managed ...
2
votes
0answers
250 views

Batch or Bulk delete of groups under a single SPWeb

Can someone help me with a powershell or C# code to do a Bulk delete of groups on a SharePoint site? I already know about this code: $site = Get-SPweb "http://root/locations/site" foreach($group in $...
2
votes
0answers
1k 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
3k 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 ...
2
votes
0answers
812 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 ...