KB Article #178756
Hosted partner account data not purged
Problem
-- License feature "hostedPartnerFtpAccounts" or "hostedPartnerSftpAccounts" is enabled
-- Partners are using the embedded (s)ftp server to receive messages
-- Data uploaded to the embedded server are not purged
-- Common folder size is increasing to critical levels
Resolution
** Per default the SFTP and FTP user data is stored in the [common]data/ssh and [common]data/ftp folders respectively. These folders are not purged by the application. The purge of trading engine messages (default 45 days) will only purge message records in the database and documents in the back-up directory.
One possible solution is to enable "Delete file after it is downloaded" on the partner exchange point's advanced tab. But this will only delete files partners actually downloaded. Files that are not downloaded will stay on the system forever.
Another solution is to run a scheduled task or cronjob on the OS level that will delete all files older than X days in these folders and subfolders.
Please note that the the message tracker will show these files "delivered" as soon as they are made available on the embedded server, not when they are actually downloaded. The events system has two events related to such messages being downloaded:
"Messaging.Message.PayloadDelivered.Downloading" and "Messaging.Message.PayloadDelivered.Downloaded"