Skip to main content

Prunes the node database.

POST 

http://127.0.0.1:14265/api/core/v2/control/database/prune

Prunes the node database.

Request

Body

    index integer

    The pruning target index.

    depth integer

    The pruning depth.

    targetDatabaseSize string

    The target size of the database in bytes.

Responses

Successful operation.

Schema
    index integerrequired

    The index of the snapshot.

curl -L -X POST 'http://127.0.0.1:14265/api/core/v2/control/database/prune' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"index": 0,
"depth": 0,
"targetDatabaseSize": "string"
}'
Request Collapse all
Base URL
http://127.0.0.1:14265
Body
{
  "index": 0,
  "depth": 0,
  "targetDatabaseSize": "string"
}
ResponseClear

Click the Send API Request button above and see the response here!