Deleting multiple attachments
Hi,
Does anyone know of a neat way of deleting all attachments from a folder in a single script (server side jScript.Net)?
Is there a function to return an array of filenames? That way you could at least loop through this list and delete each attachment one at a time.
I'm developing a process that needs to remove all attachments before archiving and I cannot find a definitive way to do this without hacking the database directly.
Thanks for your help!
Tagged:
0
Comments
-
While not likely supported, I do something like this when we "copy folder" and we don't want the attachments in the new folder. It has worked without issue for years.
%ExecSQL("DELETE FROM eAttachment WHERE eKey LIKE '%%%FolderID%%' ")
0
Categories
- All Categories
- 123 Developer Announcements
- 54 Articles
- 153 General Questions
- 149 Thrust Services
- 57 Developer Hackathon
- 37 Thrust Studio
- 20.6K Analytics
- 4.2K AppWorks
- 9K Extended ECM
- 918 Core Messaging
- 84 Digital Asset Management
- 9.4K Documentum
- 33 eDOCS
- 190 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management
- 10 XM Fax
- Follow Categories