Database maintenance
Clearing the database
The KMS server can be configured to clear the database on restart automatically.
The cleanup operation will delete all objects and keys stored in the database.
[db]
clear_database = true
Database migration
When the KMS server starts against an existing database, it checks the recorded database version and runs any pending schema or data updates before opening its HTTP and KMIP ports.
For supported source versions, multi-instance startup behavior, and recovery steps, see Database Migrations and Upgrading to 5.30.