PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 08/26/2020 9:17 AM by  Scooter
How to delete multiple Landmark files
 2 Replies
Sort:
You are not authorized to post a reply.
Author Messages
Scooter
Private
Private
Veteran Member
(169 points)
Veteran Member
Posts:79


Send Message:

--
08/25/2020 4:18 PM

    On v11 Cloudsuite, we want to use IPA to delete same filenames with datestamps, e.g.  invoice0823.csv, invoice0824.csv, invoice0826.csv, etc.

    Is it possible to delete all files beginning with "invoice" when each "invoice" file has a different datestamp.

    I know FileAccess node can delete (1) file.

    Not sure how to code a deletion of same filenames with multiple occurrences.  Thanks for your assistance. 

     

    Ragu Raghavan
    Private
    Private
    Veteran Member
    (1184 points)
    Veteran Member
    Posts:412


    Send Message:

    --
    08/25/2020 7:42 PM
    Not sure about V11, but on V10, I have used a 3 step method to do this -
    1. File Access - List Files - with a filter specified
    2. DataIterator to process the results from step 1
    3. For each file in the list, do a File Access to delete
    Scooter
    Private
    Private
    Veteran Member
    (169 points)
    Veteran Member
    Posts:79


    Send Message:

    --
    08/26/2020 9:17 AM
    Ragu, thanks so much!
    You are not authorized to post a reply.