Home › Forums › Classic DFFS › Cannot delete attachment OnPrem2016
Tagged: DFFS
- This topic has 10 replies, 2 voices, and was last updated 3 weeks, 1 day ago by
Alexander Bautz.
-
AuthorPosts
-
-
April 13, 2026 at 14:27 #39135
Hi,
I’m not able to delete an attachment from the SharePoint List Item. When I click on the delete, I get a delete confirmation, and when I confirm delete, the item gets deleted on the display form.But when I reopen the item, the deleted attachment still appears.
-
April 13, 2026 at 15:20 #39136
DFFS does not really handle the deleting – it is using the built in SharePoint code to delete the attachments. It is hard to tell what could cause this issue without looking at it, but my guess is that is might have to do with the filename having special characters.
Try opening the developer tools by hitting F12 on your keyboard, select the “Console” and try deleting the file. Do you see any error messages (in red) in the console? – if not, try looking at the network tab and look for any errors there when trying to delete the file.
Alexander
-
April 14, 2026 at 15:03 #39137
This is the only error I get while editing the item. And no errors both on the console or on the network tab at the time of deleting the attachment.
Attachments:
-
April 14, 2026 at 16:31 #39139
That one is not related. Do your filename have special (not alpha-numeric) characters?
Alexander
-
April 15, 2026 at 04:41 #39140
These are the item attachments which has the issue. Just that I have another version of the document, I’m trying to remove the previous version. There are no complications on the Attachement title too. PFB.
-
April 15, 2026 at 04:47 #39142
Here are the attachments .
Attachments:
-
April 15, 2026 at 13:22 #39144
Not sure what could cause it, but you can try opening the developer tools in the browser, select the “Console” and then run the attached code – edit the last line under “HOW TO RUN” and change the list name, itemId and the attachment name.
Alexander
Attachments:
-
April 28, 2026 at 12:54 #39153
This is the outcome while I run the code on console.
Attachments:
-
April 28, 2026 at 15:41 #39155
It looks like you haven’t used the correct display name of your list (%20 indicates you copied it from the URL).
Alexander
-
April 28, 2026 at 16:27 #39156
Sorry it was my mistake. Now I can get the message as deleted. But when I close the form and reopen the item, the specified document shows up again.
Attachments:
-
April 28, 2026 at 18:13 #39158
You must run the code while in EditForm and then save the form. If you still cannot remove the attachment I’m not sure how to do it.
You might have better luck running a powershell script. Either check with your IT or us your favorite AI-tool generate the powershell code based on my javascript example.
Alexander
-
-
AuthorPosts
- You must be logged in to reply to this topic.



