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 remove
removes files, directories, roots, and architectures
und remove [-file|-vs|-cmake|-root|-arch|-baseline] <argument> ... <database.und>
The remove command removes files, directories, visual studio files, roots, architectures, and baselines from the project. It will detect whether the argument is a file, directory, visual studio file, root, architecture or baseline. It will default directory in case of a conflict and can be forced to treat the argument as a file, visual studio file, root, or architecture using the switches -file, -vs, -root, -arch and -baseline respectively.
The command could look like this
und remove someFile.cpp myProject.und
und remove C:\SomeDirectory myProject.und
und -db myProject.und remove vsFile1.vcproj vsFile2.vcproj
remove thisArch (Interactive Mode)
remove NAMED_ROOT: (Interactive Mode)
Use -vs (or its alias -cmake) to force the argument to be removed as an import file. When removing an import file (visual studio, xcode, or CMake), the following switch is also available:
| Option | Description |
|---|---|
-vs | Force the argument to be treated as an import file to remove. -cmake is an accepted alias. |
-analyzelater | skip the automatic analysis of changed files. |
The command can take in a text file listing all the files, directories, visual studio files, roots, OR architectures to delete, with one per line, # lines ignored. The file is shown as a list file by @, so the command could look like this
remove -file @listfile.txt (Interactive Mode)