Removes a whole table using the group name.
CLI Example
Command syntax:
global_db drop_table
-group <group_name>
Options:
-group - name of the group (list of names can be acquired using GROUP_LIST command)
Command:
cellframe-node-cli global_db drop_table
-group local.personal
Response:
Dropped table: local.personal
JSON-RPC Example
JSON-RPC Request - GLOBAL_DB DROP_TABLE
Removes a whole table using the group name.
Request Structure
JSON object:
{ "method": "global_db", "subcommand": ["drop_table"], "arguments": { "group": "group_name" }, "id": "1" }
Parameters:
group
- name of the group (list of names can be acquired using JSON-RPC Request - GLOBAL_DB GROUP_LIST)Curl Example
Request:
curl --unix-socket /opt/cellframe-node/var/run/node_cli -X POST http://localhost/connect -d '{ "method": "global_db", "subcommand": ["drop_table"], "arguments": { "group": "local.ledger-cache.Backbone.txs" }, "id": "1" }'
Response:
Link to original { "type": 2, "result": [ { "Dropped table": "local.ledger-cache.Backbone.txs" } ], "id": 1 }