und is the command-line interface to Understand — script project creation, analysis, CodeCheck, metrics, and reports, locally or in CI.
Run Understand from the command line · Headless workflow: create, analyze, check, report
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)
| Option | Description |
|---|---|
-db database.und | The database to purge. May also be given as the last argument. |
However an open database is not allowed with the purge command.