Skip to content
EN | DE

Reset database

POST
/db/reset
curl --request POST \
--url https://demo.evcc.io/api/db/reset \
--header 'Content-Type: application/json' \
--cookie auth=<auth> \
--data '{ "sessions": true, "settings": true }'

Selectively deletes sessions and/or settings from the database. Session users must supply the admin password in the X-Admin-Password header. API key holders via Bearer token are exempt. The instance restarts after a successful reset.

X-Admin-Password

Admin password

string

Admin password (required for session auth, not needed for API key)

Media typeapplication/json
object
sessions

Delete all charging sessions

boolean
settings

Delete all settings, configs, and meters

boolean
Examplegenerated
{
"sessions": true,
"settings": true
}

Reset successful, instance is restarting

Unauthorized - Login and try again

Media typetext/plain
string
Allowed values: Unauthorized