my.removeSavedFile
Version requirements: Basic library 1.13.0 or higher version. If the version is low, you can programmatically check for Compatibility.
Delete a saved file.
Sample Code
copy
my.getSavedFileList({
success:(res)=>{
my.removeSavedFile({
apFilePath:res.fileList[0].apFilePath,
success:(res)=>{
console.log('remove success')
}
})
}
});
Parameters
Object type with the following attributes:
Attributes | Type | Mandatory | Description |
apFilePath | String | Yes | File path |
success | Function | No | Callback function for call success |
fail | Function | No | Callback function for call failure |
complete | Function | No | Callback function for call completion (to be executed for both call success and failure) |