You are viewing limited content. For full access, please sign in.

Question

Question

deleting files from folder in repository using workflow

asked on April 23, 2019

This should be simple but being new to work flow, I'm not sure how to do this.

Background:  I have a form with an upload button to upload photos.   When the form is committed to the repository, it embeds the image in the form (which is what I want) but it also has the image listed separately with the form in the repository.

I routed the photo attachments to a catch-all folder in the repository where I want to delete the images and was hoping a workflow could accomplish this automatically.

 

I thought I could create a simple workflow to accomplish this:

Find Entries > Delete Entry

I actually got it to work <kind of>.   Instead of deleting just the items inside the folder, it deleted the whole folder.

I searched on how to do this in Answers but couldn't find what I was looking for.    Any help would be appreciated.  Thank you.

0 0

Replies

replied on April 23, 2019

Do you need to wait for confirmation of something before you delete them? Or will the presence of a document in that folder mean it's ready to be deleted?

If the latter, it would be easier to do a workflow that starts when a document is moved into that folder and just deletes its starting entry. There's no need for batching it with Find Entries.

1 0
replied on April 23, 2019

Hi Miruna.  Erik's suggestion worked just great.  But I'll try this as well if there is no need to wait until the end of the day to delete the documents.  I'll have to check with my customer.  Thanks! 

0 0
replied on July 6, 2021

Hi, Miruna.

 

Which activity do you use to start the workflow if I wanted to do what you suggested?

 

Thank you.

0 0
replied on April 23, 2019

Make sure you have Find Entries Filter set to Documents.

Use a for each entry loop to iterate the outputs of find entries.

Then delete the current entry within the loop.

0 0
replied on April 23, 2019

Thank you so much.  Worked perfectly.  I have the workflow scheduled to delete the contents of the folder at the end of each day and not right away just in case...   Thanks again! smiley

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.