Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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

1
vote
1answer
9 views

Deleting sharepoint list items with pnp results in bad request

Running pnp in modern script editor spfx web part, can add items, get items from a list, but cannot delete items from a list: $pnp.sp.web.lists.getByTitle('List Name').items .filter('Title eq ...
1
vote
2answers
26 views

prevent deletion permission on file/folder level

I have a question on this site permission/access level thing. This is my requirement. All users of the overall site get permission to view, edit and delete files and folders. Yet there is one folder/...
0
votes
2answers
57 views

Remove all files using REST

Is there a way I could remove all files from given folder using SharePoint REST api?
0
votes
1answer
447 views

Can not delete Document Set “The file is currently checked out or locked for editing by another user.”

I have a Doc Set I can not delete. I've tried to delete it via Windows Explorer (in case that would help) and via the Content and Structure menu, but to no avail. As you see in the pictures below, ...
0
votes
0answers
20 views

SharePoint Online permissions required to run a jquery script that removes resolved user on edit form

I have a jquery script placed on a list edit form that removes resolved user from a people picker field. But the problem I am having is, it works for certain users and it doesn't for others. I tried ...
0
votes
1answer
34 views

Trying to delete SharePoint folder using API

I'm following this https://docs.microsoft.com/en-us/sharepoint/dev/sp-add-ins/working-with-folders-and-files-with-rest to try and delete a folder in a SharePoint library. I'm writing a c# console app ...
1
vote
2answers
21 views

Disallowing Delete from Document prevents movement between folders

I've looked everywhere but it seems that there is an option for Sharepoint365 to disallow document deletion ("Edit" permission group). I went ahead and removed the delete permission from said group, ...
0
votes
0answers
14 views

How to delete the workflow tasks which are older then an year in sharepoint 2013

I have the workflow tasks which are older than 2 years in the MYtasks list in my personal SharePoint site. How can I delete these old workflow tasks from MYtasks list?
1
vote
0answers
276 views

Flow: how to get deleted item values?

I need to make some updates to a list based on the data deleted in another list. I tried using 'When an item is deleted' trigger but when I try to get the data in the column which was just deleted I ...
2
votes
3answers
55 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,...
0
votes
1answer
251 views

CSOM - file.DeleteObject() doesn't delete file

am trying to do a simple operation "Delete file from document library using CSOM" As i have only the Relative path http://hostname/subsite/subsite/doclibname/sample.docx I used below code to get the ...
0
votes
1answer
300 views

Delete document from document library on basis of “Document ID” - CSOM or REST

We are developing an API to be called by external application. To have unqiue document ID across Site Collection we have enabled "Document ID service" Using CSOM we have been able to implement ...
0
votes
1answer
57 views

2010 REST Delete List

I have a List that I have been tasked with creating. The idea is to make a "Master View" that joins several other lists from the same site into one. It is my understanding that it is no possible to do ...
0
votes
1answer
52 views

Deleting SharePoint field causing “Column *** does not exist” exception when loading ListItemAllFields

I have a customized functionality to delete a SharePoint field in my SharePoint online site. I'm deleting the said field from content types, associated lists and finally deleting the site column ...
0
votes
1answer
128 views

How to disable Delete option from Version History Page?

I want to disable the Delete option from the Version History Page. I have already gone through this link, but I do not want to achieve this task by modifying existing permissions. Everyone will have ...
1
vote
1answer
51 views

How to delete all versions from the same author in all libraries from the list?

Our company SharePoint site got into a loop of a script which duplicated all the files in the libraries from our list. Now we are stuck with 50+ versions of each files and depleted our 1TB in ...
0
votes
1answer
19 views

Pre remove item event

I'm using sharepoint 2013, I want to do someting before I delete item from my list. It's imposable in nintex. How can I catch the event? Thanks
6
votes
3answers
401 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?
1
vote
1answer
63 views

Deleting large site collection with size 100GB using gradual delete option

we have a SharePoint site collection with size of 100GB. We wanted to delete the site permanently and need to use the same site url. Recommended option is to use gradual delete option in Remove-...
1
vote
1answer
38 views

Designer Workflow: Triggering on Delete?

So I have created a custom task list which has 4 sub lists that are identical. When the business area is selected in one of the choice columns on the list this will then copy the item to the relevant ...
0
votes
3answers
132 views

Unable to delete Document Library

I am the Sharepoint Administrator, I have full control of the site collection and yet I am unable to delete a Document Library. In the Document Library settings the 'delete document library' text ...
1
vote
0answers
17 views

SharePoint 2013 Permissions - A.D and SharePoint 2013 on premis

I wonder if anyone could advise on this. I have a user that cant use all the functions within a document library, edit delete etc. To me this points to permissions. I have checked the site ...
0
votes
1answer
143 views

I'm Site Owner - Cannot Delete List Items

I apologize for the basic question, but I seem to have found myself in trouble trying to help our team by updating our outdated sharepoint site. Working with this site (specifically understanding ...
2
votes
0answers
26 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 ...
1
vote
2answers
86 views

SP13 - How to delete folder(and their content) in document library

I want to delete folder and their content in document library Structure: Document Library -- Folder(delete this) --- image.jpg(delete this) This is my Code: SPFolder myFolder = oWebBG.GetFolder(...
1
vote
0answers
428 views

Unable to delete list item attachment

my business user was unable to delete list item attachment. He deleted the attachment while editing after save and reopen the attachment still appearing on item. I am unable to reproduce the issue in ...
3
votes
1answer
416 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 ...
1
vote
2answers
334 views

Delete list item versions

I can't delete version range e.g. from VersionLabel=200 to VersionLabel=220. When I run powershell command it just deletes every second version (220, 222, 224 etc). Anyone know why it can't delete ...
0
votes
1answer
29 views

SharePoint 2013 / Data Scrubbing

After you delete an item or document from a list or library, and then the recycle bin and secondary recycle bin, does the data remain in the database for a certain amount of time? .. or forever unless ...
11
votes
3answers
16k 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 ...
1
vote
1answer
146 views

Unable to restore list item from recycle bin Sharepoint 2013

Hello a user deleted a record from a custom list. I went to the recycle bin to restore it but when I try it It shows me with the unexpected error screen and the correlation ID. I'm unable to restore ...
0
votes
1answer
365 views

SP - C# Delete Item - Error message: 0x80070005 (E_ACCESSDENIED))

When i trying to delete listItem from list and anonymous access in site perm(for Fund3) is disabled my code throw exception. Where anonymous access is enable everything is OKAY-> items are deleted.......
0
votes
2answers
914 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
128 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
105 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
648 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
35 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
320 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
466 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
227 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
700 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
32 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
47 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 ...
0
votes
0answers
231 views

rest api delete folder deletes the desired folder, the document library and all sibling folders

This first call deleted the folderName AND the libraryPath and all folderName siblings (Everything in libraryPath) [...]_api/web/GetFolderByServerRelativeURL('#urlencodedformat(arguments.libraryPath)#...
1
vote
1answer
2k 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
112 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 ...
0
votes
1answer
1k 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
1k 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 ...