Staging Area Cleanup
- Last UpdatedJun 03, 2026
- 2 minute read
The gateway can automatically clean the staging area before publishing to ensure that it contains only files that reflect the current state of the Dabacon product. This is controlled by configuring File System Output cleanup patterns for each context (for example, grids, datasheets, models, or drawings).
This applies to Draw, Model, and Engineering Gateway (Advanced mode and Simplified mode).
Note: This applies to File System output only. Cleanup patterns are not applied when using AVEVA Ingestion Service or AVEVA Integration Service outputs.
When publishing, the gateway performs the following steps for each context that has cleanup patterns configured:
-
Before generating any output for the context, the gateway scans the staging area folder associated with that context.
-
Files whose names match any of the configured cleanup patterns are deleted from the staging area.
-
The gateway then proceeds to generate and write the new output files for that context.
This ensures that files from previous publish runs that no longer correspond to existing elements in the Dabacon product are removed before new content is written.
Configure Cleanup Patterns
To configure Cleanup patterns:
-
Navigate to the File System Output settings for the context you want to configure (for example, Models or Drawings).
-
In the Cleanup patterns field, click Add pattern to add one or more patterns.

Cleanup patterns are evaluated during each publish run before content generation begins for the relevant context.
Cleanup Pattern Syntax
Cleanup patterns use glob syntax for file name matching. The following wildcards are supported:
|
Pattern |
Description |
Example |
|---|---|---|
|
* |
Matches any sequence of characters within a file name (excluding path separators) |
*.xml matches all XML files |
|
? |
Matches any single character |
file?.xml matches file1.xml, fileA.xml |
|
[abc] |
Matches any one of the characters listed |
drawing[123].xml |
|
** |
Matches any sequence of characters including path separators (recursive) |
**\*.xml matches XML files in all subfolders |
For a full reference on glob pattern syntax, see Glob (programming)
Note: Multiple patterns can be configured for a single context. A file is deleted from the staging area if its name matches any of the configured patterns.
Example
To remove all XML files and all SVG files from the drawings staging area before each publish run, configure the following cleanup patterns for the Drawings context:
*.xml
*.svg
During publishing, all .xml and .svg files in the drawings staging area folder are deleted before the gateway generates new drawing output files.