Wiki source code of Delete Folder(s)

Version 26.1 by Erik Bakker on 2022/05/02 09:26

Hide last authors
Erik Bakker 10.1 1 {{container}}
2 {{container layoutStyle="columns"}}
Erik Bakker 21.1 3 (((== About ==
Erik Bakker 25.1 4 With the help of this store item, you can delete folders from a specific directory. This process is triggered with the help of a Groovy script that looks for folders that adhere to certain criteria (in this case that the folder name is a date)
Erik Bakker 10.1 5
Erik Bakker 21.1 6 == Documentation ==
Erik Bakker 20.1 7
Erik Bakker 21.1 8 ==== 1. How to use====
Erik Bakker 20.1 9
Erik Bakker 26.1 10 Once activated this Groovy script will automatically delete all folders that pass the criteria. In the store item the criteria are as follows:
11 * The folder name is a date (formatted as yyyy-MM-dd)
12 * The folder is older than X days (X is configurable)
Erik Bakker 10.1 13
Erik Bakker 21.1 14 ==== 2. Keynotes & restrictions====
Erik Bakker 10.1 15
Erik Bakker 25.1 16 a. Note that you should think about how long you want to retain the files within the folders and when to throw away the folder
17 b. Best practice is to use a separate flow that governs the deletion of folders within the directory
Erik Bakker 10.1 18
Erik Bakker 21.1 19 ==== 3. License Information====
Erik Bakker 10.1 20 Part of the standard license agreement as agreed upon when using the store for the first time.
21
22 Would you please consult the privacy policy of eMagiz at the following link: [[https:~~/~~/www.emagiz.com/privacy-policy/?>>url:https://www.emagiz.com/privacy-policy/?]])))
23
Erik Bakker 25.1 24 ((()))
Erik Bakker 10.1 25 {{/container}}
26 {{/container}}