Prunes the node database.
POSThttp://127.0.0.1:14265/api/core/v2/control/database/prune
Prunes the node database.
Request
- application/json
Body
index integer
The pruning target index.
depth integer
The pruning depth.
targetDatabaseSize string
The target size of the database in bytes.
Responses
- 200
- 400
- 403
- 404
- 500
Successful operation.
- application/json
- Schema
- Example (from schema)
- default
Schema
index integerrequired
The index of the snapshot.
{
"index": 0
}
{
"index": 1560
}
Unsuccessful operation: indicates that the provided data is invalid.
- application/json
- Schema
- Example (from schema)
Schema
error objectrequired
{
"error": {
"code": 400,
"message": "invalid data provided"
}
}
Unsuccessful operation: indicates that the endpoint is not available for public use.
- application/json
- Schema
- Example (from schema)
Schema
error objectrequired
{
"error": {
"code": 403,
"message": "not available for public use"
}
}
Unsuccessful operation: indicates that the requested data was not found.
- application/json
- Schema
- Example (from schema)
Schema
error objectrequired
{
"error": {
"code": 404,
"message": "could not find data"
}
}
Unsuccessful operation: indicates that an unexpected, internal server error happened which prevented the node from fulfilling the request.
- application/json
- Schema
- Example (from schema)
Schema
error objectrequired
{
"error": {
"code": 500,
"message": "internal server error"
}
}
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
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"
}'
ResponseClear