# Delete files

### Description

The `Delete files` action deletes a set of specified files, optionally with subfolders.

### Options

| Option                         | Description                                                                                                                                                                       |
| ------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Action name                    | The name of the workflow action.                                                                                                                                                  |
| Include Subfolders             | Also delete the subfolders in the folder selection                                                                                                                                |
| Copy previous results to args? | Enable this if the set of files comes from a previous workflow action (as part of the result files)                                                                               |
| File/Folder                    | The file or folder to delete                                                                                                                                                      |
| Wildcard                       | The regular expression matching files to delete if the previous option is a folder. For example to delete all files ending in .dat, the regular expression would be ".\*\\.dat$". |
| Files/Folders                  | The complete list of files/folders to delete                                                                                                                                      |

After specifying a folder and wildcard (regular expression), use the `Add` button to add your file/folder selection to the table. Use the `Delete` or `Edit` buttons to remove or edit selected lines in the table.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.primeur.com/data-shaper-1.21/knowing-the-data-shaper-designer/workflows/actions/deletefiles.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
