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.
Thanks Deepak, since I am new to this smart service and can't find details in doc, can u explain about its inputs(Folder, Delete Type) and outputs.
You have to provide folder id by using tofolder({folderId}) or you can select the folder from the 3 lines next to the configuration. Delete type is like what document you have to delete. Either from the current folder only or from the child folders as well.
Delete Type is an int value, I need to delete all documents available in that folder so what should be its value?
it is a dropdown. Select value from the dropdown list.
thank you
able to achieve?
yes
I used 1st option to delete the contents and it worked. Sharing the screenshot for others reference.