truncate
How to truncate a graph.
Synopsis
system.graph('graph_name').[ifExists()].truncate()
Description
Truncate an existing graph using this command. All data will be removed from the graph.
Examples
Truncate a
graph.
system.graph('FridgeItem').truncate()The resulting list:
==>null
Truncate an existing graph if it
exists.
system.graph('FridgeSensors').ifExists().truncate()The resulting list:
==>null