thing_def.delete
The thing_def.delete command is used to delete a Thing Definition.
TR50 Request
{
"cmd": {
"command": "thing_def.delete",
"params": {
"key": "mythingdef"
}
}
}
Request Parameters
Name |
Type |
Required |
Description |
---|---|---|---|
key |
String |
Yes |
The key of the Thing Definition to delete. |
alarms |
Array |
|
Array of alarm keys to delete. If specified, the thing_def is not itself deleted. |
methods |
Array |
|
Array of method keys to delete. If specified, the thing_def is not itself deleted. |
properties |
Array |
|
Array of property keys to delete. If specified, the thing_def is not itself deleted. |
attributes |
Array |
|
Array of attribute keys to delete. If specified, the thing_def is not itself deleted. |
TR50 Response
If the command is sent successfully a success message is returned. Otherwise, an error and error message will be returned.
{
"cmd": {
"success": true
}
}