---
title: Automated Post-Processing of Import Files
description: How to automatically move, delete, or rename import files after successful FTP/SFTP import in Shopware 6 to prevent duplicate imports.
---

After successful processing of an import file via FTP/SFTP, the file is automatically moved, deleted, or marked according to defined rules.

## Workflow

1. Edit an **Import Profile**.
2. Open **File Post-Processing Settings**.
3. Choose one action:
    
    ![](/images/Automated_Post-Processing_Of_Import_Files.jpg)
    
- **Move file to archive/success directory**
    
    ![](/images/Automated_Post-Processing_Of_Import_Files_move.png)
    
- **Delete the file after successful import**

- **Rename file** (e.g. add `_processed`)
    
    ![](/images/Automated_Post-Processing_Of_Import_Files_rename.png)

## Rename placeholders

When you choose **Rename file**, enter the postfix that should be added before the file extension.

You can use these placeholders in the postfix:

| Placeholder | Result | Example postfix | Example file name |
| --- | --- | --- | --- |
| `[timestamp]` | Unix timestamp | `_processed_[timestamp]` | `import_processed_1779809986.csv` |
| `[datetime]` | Readable date and time in `YYYY-MM-DD_HH-mm-ss` format | `_processed_[datetime]` | `import_processed_2026-03-13_15-19-33.csv` |

You can also combine placeholders, for example `_processed_[timestamp]_[datetime]`.

## Result

- The import directory always contains **only unprocessed files**.
- Duplicate imports are prevented.
- Imports run in a controlled, sequential order.
