We usually meet that the recipe is failed when rebuild it, we can figure out a way to rebuild all the recipes once to check such failures, for example: bitbake world -crebuild Then all the world recipes will be rebuilt. Or we can edit some config files, env, and so on, it should be an official UI/API.
We need be able to rebuild only one or all, for example: bitbake zlib -crebuild will only rebuild zlib, it is useful when we modified the source in ${S} and build it for development/testing, and: bitbake zlib -crebuild_all will rebuild all the dependencies recipes, including the native ones.
Surely this is already easily accomplished by deleting TMPDIR and SSTATE_DIR or moving them out of the way before building world?
We have the clean* targets and the -C and -f options as well as --no-setscene so I don't believe adding in extra duplicate API is a good thing.