Skip to content

Kill Recents

Clear all background running applications on iOS device.

Interface Description

Interface Type

killRecents

Parameters

ParameterTypeRequiredDescription
deviceIdstringDevice ID

Return Value

javascript
true  // Returns true on successful operation

Basic Usage

Kill Recent Apps

javascript
// Clear all background apps on device
await apiInvoke('killRecents', {
    deviceId: 'P72578581E07'
});

How It Works

This interface clears background applications through the following steps:

  1. Open app switcher
  2. Clear background app cards through swipe operations

Performance Tip

  • This interface performs multiple swipe operations
  • If there are many background apps, it may take longer

Cooperation: try.catch@foxmail.com