Skip to content

Delete File

Delete a file by its absolute path.

Interface Description

Interface Type

deleteSandboxFile

Parameters

ParameterTypeRequiredDescription
deviceIdstringDevice ID
filestringAbsolute file path (filePath)

Return Value

Returns on success:

javascript
true

Basic 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)

Cooperation: try.catch@foxmail.com