I would like to be able to use a tool or an option for the existing bitbake to clean up the build folder in a more professional way than "rm -r" for the selected folders. There could be even a two-layer support with something like "full/distclean" which wipes everything away, maybe except the config or even that.
+1
There is something somewhat relevant existing these days: http://www.yoctoproject.org/docs/current/ref-manual/ref-manual.html#var-RM_OLD_IMAGE
Since we have rm_work and RM_OLD_IMAGE we have the start of this functionality. If we need more, we can open specific bugs for those issues but I don't think we need a wrapper for rm.