# uninstall_extra_command

> **Function** in `deepagents_code`

📖 [View in docs](https://reference.langchain.com/python/deepagents-code/update_check/uninstall_extra_command)

Return the receipt-preserving command that removes one selected extra.

## Signature

```python
uninstall_extra_command(
    extra: str,
    *,
    distribution_name: str = 'deepagents-code',
    version: str = __version__,
) -> str
```

## Description

Propagates `ToolRequirementIntrospectionError` if the uv tool receipt cannot
be read, or does not safely describe the selected extras, the interpreter, or
the `--with` packages.

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `extra` | `str` | Yes | Extra name to remove. |
| `distribution_name` | `str` | No | Name of the installed distribution to inspect. (default: `'deepagents-code'`) |
| `version` | `str` | No | Exact installed `deepagents-code` version to preserve. (default: `__version__`) |

---

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