# Disconnect

After an initial [Connect](/provider-methods/connect.md) event has taken place, an app may disconnect from Broearn Wallet at anytime. Once disconnected, Broearn Wallet will reject all signature requests until another connection is established.

### Query Function

```javascript
window.bw.put.disconnect({ session: "" })
```

### Query String Parameters

```json
// Query code
{
    session: '...'
}
```

### Returns

#### :white\_check\_mark: Approve

```json
{
  "data": "success"
}
```

#### :x:Reject

An `errorCode` and `errorMessage` as query parameters. Please refer to [Errors](/errors.md) for a full list of possible error codes.

```json
{
  "errorCode": "...",
  "errorMessage": "..."
}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://wallet-docs.broearn.com/provider-methods/disconnect.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
