Git command to re write commit history after deleting files from repo to wipe out totally from the repoMain command:
git filter-branch --prune-empty --index-filter 'git rm -rf --cached --ignore-unmatch build/Build-DBDeploy/Tools build/Tools build/Build-DBDeploy/Nant ' -- --all <start_commit_hash>^..


--all  flag scans all the commits across all branches
<start_commit_hash>  if you know the commit hash of the commit from which where you want to start the cleanup, this can be used. Useful if your commit that introduced is closer to HEAD and all commits need not be scanned to remove it

to find the start_commit_hash, run:

git log -- file/folder_name

this displays all the commits that changed the given file or folder. use the last commit hash