|  Developer
Updated on November 26, 2021

hub.scenes.scripts.delete

  • Version: 1.0
  • Classes: UI
  • Title: Scene manager categories
  • Description: Delete a script snippet, a script snippet can be removed only if it’s not referenced by any scene action block (or it’s not associated with any scene). Script snippet gets removed automatically if it has been associated with one or several scenes and if last scene owning this script snippet was removed.
  • Note: Script snippet can be unreferenced either by removing or by editing a scene that previously had an association with this script snippet.
Edit
Field Type Required Description
_id string + Id of a script snippet to delete
Edit
Code Message Data
-32600 Wrong params,
-32500 Anonymous plugin acquired!
-32600 Anonymous plugin doesn’t exist!
Edit
Here is it an example of usage:
Edit
				
					{
   "id":"_ID_",
   "jsonrpc":"2.0",
   "method":"hub.scenes.scripts.delete",
   "params":{
      "_id":"5cf0dc8c7f000068d223e88a"
   }
}				
			
Edit
				
					{
    "error": null,
    "id": "_ID_",
    "result": {
    }
}