Delete File
Delete a file by its absolute path.
Interface Description
Interface Type
deleteSandboxFileParameters
| Parameter | Type | Required | Description |
|---|---|---|---|
deviceId | string | ✅ | Device ID |
file | string | ✅ | Absolute file path (filePath) |
Return Value
Returns on success:
javascript
trueBasic Usage
javascript
const _device = await apiInvoke('getDeviceInfo', {
deviceId: 'P72578581E07'
})
const _result = await apiInvoke('deleteSandboxFile', {
deviceId: 'P72578581E07',
file: `${_device.info.sandboxPath}/hello.txt`
})
console.log(_result)