There are various ways to setup File Retention Policies in your Hosted~FTP~ account. Please see our examples below for example scenarios:
30-day policy with specific extensions #
This setup deletes all files in a specific folder path, including its subfolders, except .PDF file extensions, that are older than 30 days.

60-day policy specifying folder path with spaces and not including specific sub-folder and file extensions #
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: //FinancesDepartment/Inbound/.*. The sub-folder to not include in the policy is /Client B, which we input as //FinancesDepartment/Inbound/ClientsB/.*. The specific file types we want to delete are .CSV and .PDF which are input as: /.*.CSV /.*.PDF where the files we do not want to delete are .docx and .doc: /.*.docx /.*.doc
