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

# Reinstall Dependencies

> Clears installed dependencies so they are fully reinstalled on the next bot start. The bot must be offline.

## Path Parameters

<ParamField path="id" type="string" required>
  UUID of the bot. Must be offline.
</ParamField>

## What gets removed

| Language | Files/folders removed               |
| -------- | ----------------------------------- |
| `nodejs` | `node_modules/`, `.pkg_sig`         |
| `python` | `__pycache__/`, `venv/`, `.req_sig` |
| `go`     | `vendor/`                           |
| `rust`   | `target/`                           |

<Note>
  After clearing, simply start the bot — dependencies will be reinstalled automatically from your `package.json`, `requirements.txt`, `go.mod`, or `Cargo.toml`.
</Note>

<RequestExample>
  ```bash cURL theme={null}
  curl -X POST https://api.phanomcloud.online/bots/3fa85f64-5717-4562-b3fc-2c963f66afa6/deps/reinstall \
    -H "Authorization: Bearer sess_..."
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "success": true,
    "data": {
      "removed": ["node_modules", ".pkg_sig"]
    },
    "message": "Dependencies cleared (node_modules, .pkg_sig). Start the bot to reinstall."
  }
  ```

  ```json 409 theme={null}
  {
    "success": false,
    "error": "Bot must be offline before reinstalling dependencies. Stop the bot first."
  }
  ```
</ResponseExample>
