There are various ways to setup File Retention Policies in your Hosted~FTP~ account. Please see our examples below for example scenarios:
*Note: Please review the guidelines and syntaxes in the article: Configuring a File Retention Policy before activating your rule. This is a destructive process which will permanently delete files that are not recoverable. Please contact our support team for further assistance to this setup.
This simple setup deletes all files in every folder, including subfolders, that are older than 30 days.
This setup deletes all files in every folder, including subfolders, excluding any folders owned by the following usernames: User1, User-2, and User_3. And excluding the specific subfolder: /Main/Clientele/ClientA/. .PDF and .JSON file extensions are also excluded.
This setup deletes all files in every folder, including subfolders, with the specific file extensions .CSV, and .PDF that are older than 60 days.
This setup deletes all files in a specific folder path after 90 days. Please note that the “include subfolders” option is not enabled.
This example scenario includes folder paths with spaces while excluding a sub-folder. Please note that you can use “\s” as a regex expression to recognize a space. For this example, the folder path is /Finance Department/Inbound/ where we replace the space as: /Finance\sDepartment/Inbound/. The sub-folder to not include in the policy is /Client B, which we input as /Finance\sDepartment/Inbound/Client\sB/.