# run_uninstall_request

> **Function** in `deepagents_code`

📖 [View in docs](https://reference.langchain.com/python/deepagents-code/client/commands/extras/run_uninstall_request)

Remove one selected optional extra from the dcode tool environment.

Shared by `dcode uninstall NAME` and the `dcode --uninstall NAME` alias.

## Signature

```python
run_uninstall_request(
    *,
    name: str,
) -> int
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `name` | `str` | Yes | Extra name to remove, as the user typed it. |

## Returns

`int`

Process exit code: `0` on success and when the extra was already absent
(removal is idempotent, so a script re-running it does not fail),
`2` for an invalid extra name, `130` on `Ctrl+C`, and `1` for a
refused or failed removal — including a protected base-provider
extra, which is a refusal rather than a no-op.

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/4bfa52000ef65ac623d8ada0cb67f67cbdd663ea/libs/code/deepagents_code/client/commands/extras.py#L47)