Hi,
My requirement is to click on a link that re-directs me to a UI, but before that I want to delete all existing documents from a document folder. Is there any way by which I can delete all the documents from a document folder in a go. I know we have a!deleteDocument() smart service which would delete a particular doc. If there is no way to delete all docs in one go, please let me know how to get the doc Ids of all existing documents in a doc folder.
Discussion posts and replies are publicly visible
Hi, You can use delete folder content smart service to delete the documents from the folder. It will clear everything from the folder so please make sure to use the folder for documents only.
Hi Deepak, do you know if there is another method that doesn't use this plugin? I'm working on a story now that wants us to remove all references to that plugin and wasn't sure what would be best to put in that Process Model
this one IS doable without the plug-in, but it adds several tedious steps (seriously, i'm not sure what your project leadership has against plug-ins, it's pretty silly...)(BTW this is a pretty old thread at this point.)
1) in one node, get all document contents of a folder, storing the IDs into an array PV2) call the "delete document" (OOB) node in MNI, only if there are one or more results from step 1, iterating over each item in the array3) if there are any sub-folders (and we want to clear them out as well), the same procedure needs to be run recursively over them4) if desired, the now-emptied folders now need to be deleted too.