> For the complete documentation index, see [llms.txt](https://shoxl.gitbook.io/erp-integration-guide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://shoxl.gitbook.io/erp-integration-guide/2023.11/erp-cache-batch/cleanup.md).

# Cleanup

## Short description

Via the ERP Cache Cleanup interface it is possible to delete entities from the ERP Cache.

## Delivery method

**Update Frequency**: Once a day\
**Incremental or complete set:** Incremental

**Filetype:** Zipped XML

**Filename: \[SHOPNAME]\_ErpCache\_Cleanup**\_**\[INDEXNUMBER]**.xml\
**Transport:** over FTPS, FTPS Vendisto server hosted by INTEGRACE, file will be placed on FTPS server by ERP party.

**Location within FTP root:** \ErpCache\\

## Structure XML

```markup
<?xml version="1.0" encoding="utf-8"?>
<Import>
    <ImportSettings>
        <Importer>ErpCache_Cleanup</Importer>
        <Version>1.0</Version>
    </ImportSettings>
    <Cleanup>
        <Products>
            <Product></Product>
            <Product></Product>
        </Products>
    </Cleanup>
</Import>

```

## Fields XML

**Import element:**

<table data-header-hidden><thead><tr><th width="177">Name</th><th>Description</th><th width="150">Type</th><th>Required/Optional</th></tr></thead><tbody><tr><td>Name</td><td>Description</td><td>Type</td><td>Required/Optional</td></tr><tr><td>ImportSettings</td><td>Container element for importsettings</td><td>Element</td><td>Required</td></tr><tr><td>Cleanup</td><td>Container element for cleanup data</td><td>Element</td><td>Required</td></tr></tbody></table>

**ImportSettings element:**

<table data-header-hidden><thead><tr><th width="180">Name</th><th width="188">Description</th><th width="175">Type</th><th>Required/Optional</th></tr></thead><tbody><tr><td>Name</td><td>Description</td><td>Type</td><td>Required/Optional</td></tr><tr><td>Importer</td><td>Name of the importer.<br>Should be ErpCache_Cleanup.</td><td><p>Text,</p><p>default ErpCache_Cleanup</p></td><td>Required</td></tr><tr><td>Version</td><td>Version of the import xml. To be used for backward compatibility issues.</td><td>Text,<br>default 1.0</td><td>Required</td></tr></tbody></table>

**Cleanup element:**

<table data-header-hidden><thead><tr><th width="179">Name</th><th width="194">Description</th><th width="172">Type</th><th>Required/Optional</th></tr></thead><tbody><tr><td>Name</td><td>Description</td><td>Type</td><td>Required/Optional</td></tr><tr><td><strong>Products</strong> </td><td>Container element for a list of Product elements</td><td>Element</td><td>Optional</td></tr></tbody></table>

**Products element:**

<table data-header-hidden><thead><tr><th width="182">Name</th><th width="194">Description</th><th width="165">Type</th><th>Required/Optional</th></tr></thead><tbody><tr><td>Name</td><td>Description</td><td>Type</td><td>Required/Optional</td></tr><tr><td>Product</td><td>Product number</td><td>Text</td><td>Required</td></tr></tbody></table>
