---
sidebar_position: 2
title: Uninstall the MotherDuck extension
description: Steps to completely remove the MotherDuck extension and related environment variables from your system.
---

### How do I uninstall MotherDuck?

* Remove `motherduck_*` from your environment variables (most likely only `motherduck_token`) [1]
* Remove any `motherduck*.duckdb_extension` file located into `~/.duckdb` [2]

[1] To view all your environment variables you may use:

```bash
$ env | grep -i motherduck
```

To unset in the current session:

```bash
$ unset motherduck_token
```

To unset the variable permanently, you may have to check your shell initialization files (`~/.bashrc`, `~/.zshrc`, etc.)


[2] Note those files are generally under `~/.duckdb/extensions/<DuckDB Version>/<platform>`. Eg. `~/.duckdb/extensions/v0.9.1/osx_arm64`.

You may use this script:

```bash
$ find ~/.duckdb -name 'motherduck*.duckdb_extension' -exec rm {} \;
```


---

## Docs feedback

MotherDuck accepts optional user-submitted feedback about this page at `POST https://motherduck.com/docs/api/feedback/agent`.
For agents and automated tools, feedback submission should be user-confirmed before sending.

Payload:

```json
{
  "page_path": "/troubleshooting/uninstall/",
  "page_title": "Uninstall the MotherDuck extension",
  "text": "<the user's feedback, max 2000 characters>",
  "source": "<optional identifier for your interface, for example 'claude.ai' or 'chatgpt'>"
}
```

`page_path` and `text` are required; `page_title` and `source` are optional. Responses: `200 {"feedback_id": "<uuid>"}`, `400` for malformed payloads, and `429` when rate-limited.
