Cleaning the project tree

By default, all the files produced by Waf are produced into the build directory. An additional file named .lock-wscript is created to store information on the build directory:

build/
.lock-wscript
			

The command waf distclean removes these two elements from the filesystem. Afterwards, it is necessary to recompile the project again.

To remove the build files without removing the configuration, use the command waf clean instead. The files created in the build directory may be removed manually, but the modifications will not be detected by Waf.