Delete Media File
Delete specified photo or video file in device album.
Interface Description
Interface Type
delMediaFileParameters
| Parameter | Type | Required | Description |
|---|---|---|---|
deviceId | string | ✅ | Device ID |
fileName | string | ✅ | File name to delete |
Return Value
javascript
true // Returns true on successful deletion🤖 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 process is fully automated.
Basic Usage
javascript
// Delete specified file
await apiInvoke('delMediaFile', {
deviceId: 'P72578581E07',
fileName: 'IMG_0001.JPG'
});
console.log('File deleted');