Link Search Menu Expand Document

"remove": [...]

Stable

Removes Objects given in the array.

Returns:

  • "removed": ["object", ... ] if the object was successfully removed
  • "not-found": ["object", ... ] if the object was not found in the Database
  • "bad-json": null if an error was encountered in parsing the provided JSON data

Example:

  1. The SuperStack Database already contains an Object named "sensor 1".
    {
     "sensor 1": {
         "chip":"BME280",
         "return": ["temperature","pressure"]
     }
    }
    
  2. Issue a Remove Command:
    {
     "remove": ["sensor 1"]
    }
    

The SuperStack Database no longer contains the "sensor 1" Object.