After successfully migrating to the newer PostgreSQL v14.2 database that is available in EventSentry v5.0 and later, the legacy v9.6 built-in database can be removed if the data is no longer needed.
NOTE: Recovering data from the PostgreSQL v9.6 database is not possible unless a database or host backup is available. Do not proceed unless you are certain that data stored in the PostgreSQL v9.6 database is no longer required. Having a database backup is strongly recommended even when it is not anticipated that the data is required in the future.
Steps for a complete database removal:
sc CONFIG "EventSentryCollector" DEPEND= "eventsentrydatabase14"
sc stop "eventsentrydatabase96" & sc delete "eventsentrydatabase96"
C:\Program Files (x86)\EventSentry\postgresql96
C:\Program Files (x86)\EventSentry\data96