If auto-configuration classes are deleted, DocumentAutoConfigurationClasses will run again, but, because it doesn't delete the contents of its output directory before writing new files, the old generated files will remain. This can then cause a build failure as the files reference classes that no longer exist. To avoid this, the contents of the output directory should be deleted before new files are written.

Comment From: builtDifferentCoder

Can you assign this task to me man? I would love to do this