One of the typical uses-cases is when you want to extract/load the file and then delete it.
Use the following technique to bandle file processing and deleting the file:
Step 1. Create a source connection.
Step 2. Create a flow which reads the source file and transforms it to any destination.
Step 3. When creating the flow, select a transformation, click the
Mapping button and open the Parameters tab.
Step 3. Enable parameter Delete loaded source files. You can also enable Delete source files on error, which will cause the flow to delete files in the sources folder if there was an error during the load.