file.delete
The file.delete command removes a file from the organizations global file store or a file attached to the specific thing.
TR50 Request
{
"cmd": {
"command": "file.delete",
"params": {
"thingKey": "myThing",
"fileName": "name.txt"
}
}
}
Request Parameters
Name |
Type |
Required |
Description |
---|---|---|---|
thingKey |
String |
|
The Thing associated with the file. Defaults to the current session's Thing. |
global |
Boolean |
|
If set to true, the file is a global file and the thingKey parameter will be ignored. |
fileName |
String |
Yes |
The name of the file to be removed. |
TR50 Response
If the command is sent successfully a success message is returned. Otherwise, an error and error message is returned.
{
"cmd": {
"success": true
}
}