Forrest logo
back to the gprclean tool

gprbuild:tldr:f9a10

gprbuild: Clean up the build workspace.
$ gprclean
try on your machine

The command "gprclean" is typically used in the context of the GNAT Programming Studio (GPS), which is an Integrated Development Environment (IDE) for Ada programming language.

"gprclean" is a command-line utility provided by GNAT, the GNU Ada Compiler, for cleaning up the artifacts and intermediate files generated during the building and compilation process of an Ada project.

When you run "gprclean", it searches for the project file (with a ".gpr" extension) in the current directory and its subdirectories. It then reads the project file to identify all the generated files (such as object files, executables, and temporary files) that are no longer needed.

The command deletes these artifacts, making it useful for cleaning up the project directory and freeing up disk space.

Using "gprclean" typically follows the process of running "gnatmake" or "gprbuild" to build the project, and then using "gprclean" to remove the generated files once they are no longer needed.

It's important to note that "gprclean" won't inadvertently delete any source code files or other important files mentioned in the project file.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the gprclean tool