Kill Recents
Clear all background running applications on iOS device.
Interface Description
Interface Type
killRecentsParameters
| Parameter | Type | Required | Description |
|---|---|---|---|
deviceId | string | ✅ | Device ID |
Return Value
javascript
true // Returns true on successful operationBasic 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:
- Open app switcher
- 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