Delete Source Files
Determines if the source files are deleted once processing is completed.
The delete applies only to files read from a source connection that Archive Source Files lists for its file move. It deletes them after their archive copy or their copy on error, or in place after a successful load only where neither Archive Source Files nor OnError Source Files generates a file move. A Databricks project with Pushdown Processing generates no delete for this setting.
Outside a Databricks project with Pushdown Processing, where the batch has no Tumbling Window trigger, the object is not marked Sequential and is not read by Pushdown Extraction, no Override Copy Source, Archive Source Files or Archive Delete Source Files extension point applies to the object and its Source Settings name no ModifiedDateTimeEnd, the Data Factory pipeline that loads the object with this setting on from a source connection that Archive Source Files lists for its file move reads no source file modified at or after the time the run was triggered, in its load copy and in each copy and delete of the source files. Its delete detection pipeline does the same where Delete Detection Files is on as well.
When to Change This Setting
Keep the default Y so the source location does not accumulate processed files. Disable it when the source files must be retained, for example when the source system owns the file lifecycle or another process consumes the files.
Related Settings
| Setting | Interaction |
|---|---|
| Archive Source Files | Copies source files to the archive container after processing, or to the Persistent Landing Connection where the project has one, before this setting deletes them |
| Delete Landing Files | The equivalent delete for landed files |
Notes
- This setting is part of the Azure settings category.
- The default value for this setting is
Y.