---
version: "2026.1.0"
language: "en"
---
# Close Mobile Application

The **Close Mobile Application** block is used to close an active mobile application running on a connected device. It identifies the target app using its **Bundle Id** and attempts to terminate it within the specified timeout.

This block is useful for cleaning up between test steps, resetting app state, or simulating user behavior in mobile test flows.

Fully expanded, the **Close Mobile Application** block shows the following properties:  
![image-20251117-090333.png](https://docs.leapwork.com/__attachments/a_b9540ef2f2c9516d1b499560e187a8a335c2975e0d7bd374d03973fdd7e749df/image-20251117-090333.png?cb=1ba3a6f6cd2bfe7bf00045e810933e16)

**Note:** The screenshot on this page uses the **Elegance Design** , introduced in **2025.3**. If you are using an earlier version, your layout may look different.

## Quick-start

1. Drag **Close Mobile Application** onto the canvas.

2. Specify the basic parameter required for this block to operate: **Bundle Id**.

3. Run the flow when it's ready.

## Building block parameters

Parameters  
* **Block header** : The green input connector triggers the block to start executing. The green output connector triggers when the mobile application has been successfully closed. You can rename the block title ("Close Mobile Application") by double-clicking it and typing in a new title.

* **Bundle Id** : The bundle identifier that represents the mobile application's unique identifier.

* **Text fields** : Stores key--value pairs that can be inserted as dynamic tokens into **Bundle Id** via **Insert token** . Fields can be renamed by double-clicking them, and inserted tokens update their visual appearance accordingly.

* **Add field** : Adds a field that can be inserted as a token into **Bundle Id** .

* **Error occurred** : Triggers if the block returns an error during execution, so you can branch your flow.

* **Default timeout** : If the checkbox is **not selected** , the timeout is **60 seconds** (using **Timeout (sec)** ). If the checkbox **is selected** , the **Default timeout** value from the flow settings applies.

* **Timeout (sec)** : The maximum time spent trying to close the application before giving up. This value is used when **Default timeout** is not selected (default is **60 seconds** ). This is separate from the case **global timeout** in **Settings**.

## Resources

|                                        **Topic**                                         |                            **Description**                             |
|------------------------------------------------------------------------------------------|------------------------------------------------------------------------|
| [++Mobile connections++](https://docs.leapwork.com/leapwork-flow/latest/administration/connections.md)            | Overview of what's needed to enable mobile automation                  |
| [++Mobile configuration++](https://docs.leapwork.com/leapwork-flow/latest/administration/mobile-configuration.md) | Steps to configure devices and environments for testing                |
| [++Mobile FAQs++](https://docs.leapwork.com/faq/latest/leapwork-flow-faq/mobile-faq.md)                           | Frequently asked questions about mobile automation and troubleshooting |