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
0
votes
2answers
2k views

SP - Delete list item and folders in Recycle bin with C#

I'm with SP13 On-prem and I want to delete all items from lists and all folder in doclibraries in recycle bin... This is my code for list: if (list.BaseType == SPBaseType.GenericList) { while (...
0
votes
1answer
168 views

SP - How to delete(clear) folders/items from doclib/list

I want to delete(clear) content of document libraries and lists from my site. my document libraries have folders and items inside them. my list have items How to do this: This is my code: ...
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
0answers
980 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 ...
0
votes
3answers
42 views

Network File Share

This should be an easy question but I've found nothing on Google that gives me a good idea: What do you do with files on the Network File Share after they have been uploaded to SharePoint? Is it ...
0
votes
2answers
560 views

Can't “close” or “hide” web part

I'm very new to Sharepoint. I'm trying to remove a web part without deleting the contents, however, there is no "close" option available and I'd prefer not to delete the web part. Why isn't the ...
3
votes
2answers
611 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() ...
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 ...
1
vote
1answer
855 views

How to delete a site column via Javascript/JSOM

Is there a way to delete a site column (and remove it from all according content types) via Javascript? I found some CSOM scripts and tried to approximate the JSOM method but it didn't work out. The ...
0
votes
1answer
51 views

Sharepoint 2010 document is not being hard deleted

There are some documents in our content database that need to be hard deleted. I've logged into as a site admin and using the interface gone and deleted them and even deleted it from the recycle bin. ...
1
vote
0answers
63 views

Site Use Confirmation and Deletion - Custom Email - SharePoint 2013

Is it possible to send a custom email while using the "site use Confirmation and Deletion" from central administration in SharePoint 2013. I would like to send a customized email with the links ...
1
vote
2answers
3k views

How to delete a discussion from SharePoint Online - Office 365

I have full admin rights to our SharePoint/Office 365 and I've added several test discussions in a discussion board. When I open a discussion, I don't see any delete options on the List ribbon or ...
3
votes
2answers
224 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 ...
1
vote
1answer
2k views

How ListItem.DeleteObject() works?

I have several Lists in my site. Among them I am trying to find out duplicate values in 3 of the lists, Publisher1, Publisher2, Publisher3. I am searching in the lists and saving the duplicated ...
0
votes
1answer
15 views

delete item that only has no edit rights

I made a workflow that (among other things) changes the rights of an item. It changed that a certain group only had read rights instead of edit rights. I, as an admin, am also in that group ...
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, ...
0
votes
2answers
1k views

Item Edit Form: Delete Item on “Cancel”

I am building a custom list item edit form using SharePoint Designer. I need the item to be deleted when user clicks "Cancel" button (same functionality as he would press "Delete" in ribbon). I ...
0
votes
1answer
263 views

Clear out remnant LDF log files of Sharepoint DB not visible on SBS 2008 Domain Server?

Screenshot of files, location & DBs in Microsoft SQL Server Management Studio Express GUI: I've looked at several answers and tutorials on how to clear out the LDF via GUI and SQL commands, but ...
2
votes
0answers
508 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 $...
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
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 ...
1
vote
2answers
78 views

Clean old SP users

I look for synchronize my SP users regarding to the AD users. I thought that I remove a user in AD, it would be removed from SP but not at all! How can I remove all users in SharePoint deleted in ...
0
votes
1answer
5k views

Cannot delete a web application

I am trying to delete a web application in my SharePoint 2013 environment. The first attempt deleted the database, the application pool, the IIS site... But the I got an error saying An object of ...
0
votes
2answers
45 views

How to delete more then one record in view

I am trying to delete more then records but I am not sure how, I know in SharePoint 2010 you can edit in datasheet view and easily delete them but how do I do it in 2007?
1
vote
0answers
48 views

Whether item.recycle method will trigger event receiver?

When an item.delete() methods get called it will trigger the respective item deleting and item deleted event receiver. Whether this will behave same for the item.recycle() method too.
0
votes
1answer
301 views

Delete items from SP2013 List using excel list as filter

Is there possible a way to delete multiple items from a SharePoint 2013 list the details of which lie in an excel file. We have an excel file of the SharePoint list data and would like to only delete ...
0
votes
1answer
18 views

Deleting SharePoint files via Excel

At work we have a spreadsheet of accounts that after a certain amount of time need to be deleted. So far the only way we have to do this is by manually going through each and every account and hitting ...
1
vote
1answer
3k views

Completely remove field from Content Type?

I recently tried to delete a Multi-line Text Field from a custom Content Type. I then attempted to delete this field, and re-create it as a Single line of text under the same field name. After ...
0
votes
2answers
601 views

Disabling delete listitem clientside

I added a Related Item View to a Displayform, as standard there is the Select all flag/button. In order to deny the user from deleting a listitem I'd like to remove this button. Is there a way to do ...
0
votes
2answers
145 views

How to delete a large number of Content Types from Content Type Gallery?

We have a lot of InfoPath forms deployed on our SharePoint 2013 farm as custom Content Types. Over the period of time there are now a lot of such unused custom content types in gallery. When i say a ...
0
votes
4answers
5k views

Hide button “Delete Item”

I have a problem, because I want to accomplish a task before you delete an item from my list. For this I created a button "Delete client" that runs a workflow or run a javascript. But we have failed ...
0
votes
2answers
4k views

Removing SPWeb properties from its property bag with powershell

I need to remove properties from multiple places with powershell script. I tried many examples from net, with null assigning and using remove on Properties and AllProperties, or using method ...
0
votes
2answers
1k views

DeleteObject doesn't work anymore in SP 2013?

In a web application, I had a C# function to delete files from a SharePoint library. In SharePoint 2010, everything went fine. In SharePoint 2013, it always returns an error "File Not Found". Can ...
0
votes
1answer
61 views

Two synchronized lists how to delete element in both lists

I have got two lists with unical name. I have got, this code: public override void ItemDeleting(SPItemEventProperties properties) { base.ItemDeleting(properties); if (...
0
votes
0answers
59 views

Deleting an Orphaned Info-path Item in browser based infoPath form Library in SharePoint 2010

We have an orphaned info path item in form library. There is no record of that item when we open in the explorer view. While trying to delete it using power shell, an error is occurred saying - access ...
2
votes
1answer
500 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
0answers
31 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
3k views

Is there a way to bulk delete records

It seems that I have a a lot of duplicated records in my " central " area so I wanted to either filter by Area then delete the duplicates if there is a way to do that or bulk delete every record that ...
0
votes
2answers
2k views

Delete all documents in Library

I recently created a Sharepoint site (Record Center) for making a hiring portal. But I have an issue. I am unable to delete all documents in one go from "default" library (renamed Job Applications). ...
0
votes
2answers
80 views

Deleting items in object-model

How to add a new item to SharePoint list in server object-model using C#. This is my code and I want to delete just one item using listBox SPWeb web = SPContext.Current.Web; ...
0
votes
1answer
629 views

Disable the delete confirmation dialog/message

When I delete an item or document from a list we get the "Are you sure you want to delete this item?" dialog. So it is not possible to directly delete an item, one has to confirm the deletion by ...
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. ...
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 ...
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. ...
0
votes
2answers
554 views

OnDelete Event Receiver delete associated item

I have 2 lists. List A creates a record in List B on the creation of a record in List A. So, I'd like to complete the circle by deleting the the item in List B when the record is deleted in List A. ...
0
votes
1answer
63 views

Broken List Cannot be Deleted

Related to Broken Lists Cannot Be Deleted. How can I accomplish this in Sharepoint Online?
0
votes
2answers
324 views

Remove attachment from SPEmailMessage

I've written an Event Receiver (SPEmailEventReceiver) which is used to populate metadata based on the email message contents. The Event Receiver saves the Attachments in the same Document Library as ...
0
votes
1answer
2k views

How to delete host name site collection

How can I delete a host named Site Collection? Its 2013 SharePoint Foundation. I tried to create few but they didn't worked.
1
vote
1answer
1k 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 ...