Clean Album
One-click clean all photos and videos in device album.
Interface Description
Interface Type
clearMediaFileParameters
| Parameter | Type | Required | Description |
|---|---|---|---|
deviceId | string | ✅ | Device ID |
Return Value
javascript
true // Returns true on successful cleaning🤖 Auto Operation
iClick will automatically handle deletion confirmation prompt on device, no need to manually click confirmation button. System will automatically recognize and click delete confirmation dialog, the entire cleaning process is fully automated, you just need to wait for completion.
Basic Usage
javascript
// Clean device album
await apiInvoke('clearMediaFile', {
deviceId: 'P72578581E07'
});
console.log('Album cleaned');