scitools.com

← All und commands

und is the command-line interface to Understand — script project creation, analysis, CodeCheck, metrics, and reports, locally or in CI.

und purge

purges the database

und purge [-db <database.und>] <database.und>

The purge command removes all parsed data from the Understand database leaving only the project definition and significantly shrinking the und project size. Running the analyze command will repopulate the project. This is ideal for sharing the und project or backing it up.

The database can be given as the last argument or with the -db switch. It looks like this

und purge myDataBase.und
purge myDataBase.und (Interactive mode)
OptionDescription
-db database.undThe database to purge. May also be given as the last argument.

However an open database is not allowed with the purge command.