You are currently reviewing an older revision of this page.

DRAFT KB-XXXX Cleanup script removes archived kdb files


Archived kdb files are deleted after running the Cleanup script within <APPIAN_HOME>/server/_scripts/ using the following command:

cleanup.bat(.sh) logs -delete -keep <# of days of logs kept>

Running the above script does not only delete logs, but will also delete archived KDB files, which can be noticed as part of the output:

[exec] Deleting: <APPIAN_HOME>/services/data/archived/*/*.kdb


This issue has been addressed via AN-146512 in the following hotfixes/versions:


Apply the latest hotfix to your Appian installation or upgrade to the latest version of Appian.


To prevent the cleanup.bat(.sh) script from deleting archived kdb files, remove the following lines from the log.xml file found in <APPIAN_HOME>\server\_scripts\ant\:

<!-- Komodo Log Archive Cleanup -->
  <echo message="Cleaning Service Manager Transaction Log Archives"/>
  <property environment="env"/>
    <os family="windows"/>
      <exec executable="cmd" dir="${env.AE_HOME}/services/bin">
        <arg line="/c cleanupArchives.bat logs -k ${log.numkeep}"/>
      <exec executable="/bin/bash" dir="${env.AE_HOME}/services/bin">
        <arg line=" logs -k ${log.numkeep}"/>

Affected Versions

This article applies to Appian 18.3 and later.

Last Reviewed: February 2020