> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Bach builds Windows installers from one bach.toml with the bach command: bach init, bach check, bach preview, bach build. Installs are per user and need no administrator rights by default. installer.scope = "machine" installs for every user after one Windows prompt. On Windows, run setup files with Start-Process -Wait -PassThru in PowerShell, and give signtool arguments that start with the word sign.

# [uninstall]: user data and the feedback link

> Reference for [uninstall] in bach.toml: data folders offered for deletion, their description and the feedback_url shown after removing the app.

`[uninstall]` describes the user's data and the feedback link shown after removal. All settings are optional.

```toml bach.toml theme={"theme":{"light":"github-light","dark":"github-dark"}}
[uninstall]
data = ['%APPDATA%\Hello', '%LOCALAPPDATA%\Hello\Cache']
data_description = { en = "Your settings and the download cache.", de = "Deine Einstellungen und der Download-Cache." }
feedback_url = "https://example.com/why"
```

| Setting | Default | Meaning |
| - | - | - |
| `data` | none | Folders the app keeps its data in. The uninstaller offers "Also delete my data" (unticked) and deletes them only when the user ticks it. Each must start with `%APPDATA%`, `%LOCALAPPDATA%` or `%USERPROFILE%`, followed by your app's own folder, so the uninstaller can only ever delete inside the user's profile. A profile folder itself (`Documents`, `Desktop`, `Downloads`, `Pictures`, `Music`, `Videos`, `OneDrive`, `AppData`, `AppData\Roaming`, `AppData\Local`, `Programs`, `Temp`) is refused, and so is anything inside `.ssh`, `.aws`, `.azure`, `.gnupg`, `.kube`, `.docker`, `.terraform` or a `Microsoft` folder, a tool or work folder directly in the profile (`.config`, `.git`, `.vscode`, `.npm`, `.cargo`, `source`, `repos`, `projects`, `code`), another program's data (`Google\Chrome`, `Mozilla\Firefox`, `Code`, `Discord`, `Slack`, `Dropbox`), a whole company's folder (`Google`, `Adobe`, `JetBrains`) and `NTUSER.DAT`. A folder inside one of the shared ones, such as `%USERPROFILE%\Documents\My Game`, is fine. `bach check` names the setting and the reason, and a setup file that breaks the rule is refused when it starts. The uninstaller also never deletes a folder that is, or contains, the install folder. `bach check` warns when none of a folder's parts looks like the app's name, id or publisher, and the removal window lists the real folders under the checkbox. |
| `data_description` | a generic line | What lives in those folders, in a few words, shown under the checkbox. Text or `{ en = "...", de = "..." }`. |
| `feedback_url` | none | An `https` page the uninstaller's last page links to ("Tell us why"). |

> [!TIP]
>
> Write Windows paths in TOML with single quotes so backslashes stay as they are: `data = ['%APPDATA%\My App']`.

## Related texts

The checkbox and the last pages use the `delete_data`, `delete_data_description`, `removed_data_deleted`, `removed_data_kept`, `step_deleting_data` and `feedback` texts. See [`[text]`](/docs/reference/config/text).

See [The uninstaller and your users' data](/docs/guides/uninstall-and-user-data.md) for the guide.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.