device_file_delete
Delete a file or directory on the device (recursive). Counterpart of ios_file_delete. NOT REVERSIBLE — there is no trash on Android. Refuses the storage roots (/, /sdcard, /storage/emulated/0, /data, /system): an agent asking to delete one of those has almost always built the path wrong, e.g. an empty variable in /sdcard/${dir}. Deleting a path that does not exist is reported as an error rather than a silent success, so a wrong path surfaces instead of reading as done.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| udid | Yes | Device serial number (UDID) | |
| remotePath | Yes | Absolute path of the file or directory to delete |