Use of deleteDir() have drawbacks: it will force downloading of git repo from scratch. And if you have big repo it will slowdown build.
test -e .git && git clean -fdx
Instead of deleteDir() does the trick. Based on solution from: https://stackoverflow.com/questions/34213036/clean-builds-with-multibranch-workflow: sh 'git clean -fdx'.