How to check on which confd version cdb is generated

I wanted to check particular cdb is generated on ConfD version x or y.
My use case is to delete the cdb if it’s not created on the current running ConfD version.

Is there any confd command available to check the same?

You can run something like

$ confd --cdb-debug-dump /path/to/confd-cdb | grep Version
Version:         5 from ConfD version 7.5.1

Not sure if this is guaranteed to work when reading CDB files using much older ConfD version, you may want to consider other options of keeping track of used ConfD version.