---
title: "Stop app"
method: PATCH
path: "/devices/{deviceId}/apps/{packageName}"
tags: ["Apps"]
---

# Stop app

`PATCH /devices/{deviceId}/apps/{packageName}`

Force-stops the app identified by the path package name. When clearData is set in the request body, the app's data is also cleared. Protected packages cannot be stopped.

## Path parameters

- `deviceId` string, required
- `packageName` string, required

## Headers

- `X-Device-Display-ID` integer

## Request body

- StopAppArgs
  - `$schema` string, uri — A URL to the JSON Schema for this object.
  - `clearData` boolean — If true, clears all app data (pm clear) in addition to stopping the app.

## Response `204`

No Content

## Other responses

- `default` — Error

---

[API](https://skmtc.net/mobilerun/apis/workflows.md) · [All operations](https://skmtc.net/mobilerun/apis/workflows/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/mobilerun/workflows/revisions/1bc499aa8f99/schema)
