clearData
This tool on every surface: CLI · MCP · Python · JavaScript · Go · Java · .NET
Delete an app's data and leave it installed — the state of a fresh install, without reinstalling. These call app_clear_data.
clearData
clearData(app: string, bundle?: string): Promise<Data>
Examples
Delete an app's data, and keep it installed
const cleared = await device.clearData('com.example.shop')
console.log(cleared.emptied, cleared.kept)