# 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`&#x20;

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

<figure><img src="/files/nsjPZKMPWEYCTTvOfkkI" alt=""><figcaption></figcaption></figure>

### **Usecase/Example**

<figure><img src="/files/PeuguG3l9QYyP3gbWZ9O" 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: 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://docs.avoautomation.com/avo-assure/actions/mainframe/disconnect-session.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.
