> For the complete documentation index, see [llms.txt](https://docs.avoautomation.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.avoautomation.com/avo-assure/actions/mainframe/disconnect-session.md).

# Disconnect session

This is pre-built Action located under the Mainframe List Element Name. It instructs the Avo Assure Client to disconnect the session which is connected.

### **Syntax**

**Input:** `N/A`

**Output:** `<Dynamic Variable>(Optional);<Dynamic Variable>(Optional)`

<figure><img src="https://2174257472-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fk8QZzXZMIJSStKAzDSTu%2Fuploads%2F2DY3qdy0UGvKhslo7B8Q%2Fimage.png?alt=media&amp;token=ba4e5f4d-acfb-4aef-ab29-f4690863d883" alt=""><figcaption></figcaption></figure>

### **Usecase/Example**

<figure><img src="https://2174257472-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fk8QZzXZMIJSStKAzDSTu%2Fuploads%2FOqIqNr8gA2xPYKy481nL%2Fimage.png?alt=media&amp;token=a979dca1-a1f5-4529-9f22-9ebbd2f30a08" alt=""><figcaption></figcaption></figure>

### **Scenario**

Consider a scenario, when testing Mainframe Application sessions are often kept open for extended periods, sometimes interacting with multiple systems or databases. After completing the necessary test steps in a session, it is crucial to disconnect to ensure resources are released and that the system is in a clean state for future test executions. The **Disconnect session** keyword helps automate the disconnection process at the end of a test scenario.

### **Expected Result**

The Action needs to disconnect the session.

### **Output**

The Disconnect session Action disconnects the session.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.avoautomation.com/avo-assure/actions/mainframe/disconnect-session.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
