project_clean (::quartus::project)

The following table displays information for the project_clean Tcl command:

Tcl Package and Version

Belongs to ::quartus::project 6.0

Syntax project_clean [-h | -help] [-long_help] [-revision <revision_name> ]
Arguments -h | -help Short help
-long_help Long help with examples and possible return values
-revision <revision_name> Revision to clean (if omitted, all revisions of the open project are cleaned). Revision name can contain wildcards (i.e., '*').
Description
Cleans database and compiler-generated output for the specified 
revision (or all revisions if no revision is specified).  Cleaning 
revisions removes database and other files generated by the Quartus Prime
software, including report and programming files.

This command closes the currently open project before cleaning.

Specifically, this cleans all of the following files/folders (for all matching revisions):

<revision>.*.rpt
<revision>.*.rpt.htm
<revision>.*.rpt.htm_files
<revision>.*.msf
<revision>.*.smsg
<revision>.*.summary
<revision>.jdi
<revision>.pin
<revision>.pof
<revision>.sof
<revision>.done
<revision>.sld
(all revision files in the db, incremental_db, and persona directories)
Example Usage
project_clean -revision "foo"   # Cleans revision "foo"
project_clean -revision "foo*"  # Cleans all revisions starting with "foo" (e.g., "foo", "foobar")
project_clean                         # Cleans all revisions in project
Return Value Code Name Code String Return
TCL_OK 0 INFO: Operation successful
TCL_ERROR 1 ERROR: Failed when attempting to remove database files in <string> for revision <string>.
TCL_ERROR 1 ERROR: Failed when attempting to remove file <string> for revision <string>.
TCL_ERROR 1 ERROR: Couldn't delete file or folder named '<string>'.
TCL_ERROR 1 ERROR: Couldn't open configuration settings...the settings object is currently locked.
TCL_ERROR 1 ERROR: Can't access revision '<string>'. The revision may not exist, or there may be an error in the revision settings.
TCL_ERROR 1 ERROR: You must open a project before you can use this command.