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:

{
  "type": 2,
  "result": [
    {
      "Dropped table": "local.ledger-cache.Backbone.txs"
    }
  ],
  "id": 1
}