Wiki source code of Delete Folder(s)
Version 28.1 by Erik Bakker on 2022/05/02 09:51
Show last authors
| author | version | line-number | content |
|---|---|---|---|
| 1 | {{container}} | ||
| 2 | {{container layoutStyle="columns"}} | ||
| 3 | (((== About == | ||
| 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) | ||
| 5 | |||
| 6 | == Documentation == | ||
| 7 | |||
| 8 | ==== 1. How to use==== | ||
| 9 | |||
| 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) | ||
| 13 | |||
| 14 | ==== 2. Keynotes & restrictions==== | ||
| 15 | |||
| 16 | * 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 | * Best practice is to use a separate flow that governs the deletion of folders within the directory | ||
| 18 | |||
| 19 | ==== 3. License Information==== | ||
| 20 | Part of the standard license agreement as agreed upon when using the store for the first time. | ||
| 21 | |||
| 22 | ==== 4. Relevant eMagiz Academy Microlearnings==== | ||
| 23 | |||
| 24 | None | ||
| 25 | |||
| 26 | //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/?]]))) | ||
| 27 | |||
| 28 | ((())) | ||
| 29 | {{/container}} | ||
| 30 | {{/container}} |