I have a Tracking Extract which pushes the Zip file to Enhanced FTP. I want to delete these files after they have imported into a Data Extension
How can I do that? am thinking of writing an SSJS activity that can delete the files. Is that possible?
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It only takes a minute to sign up.
Sign up to join this communityYou can open a support request to enable the 'Delete file from ET FTP or Safehouse' Extract Type in the Data Extract Activity, which will delete the file that matches the filename that you defined in the 'File Naming Pattern' field.
Here's a screenshot of this Extract Type (and other available options).
Zip
, Convert XML
, Mobile Push Detail Extract Report
are also options.
Sep 23, 2018 at 19:13
As far as I know, it's not possible to delete files from the FTP with platform scripting.
Files in the Export
and Import
directories are purged after 21-30 days, if that matters.