git filter-branch -force -index-filter ‘git rm -cached -r -ignore-unmatch directoryToRemove’ -prune-empty — -all

git push origin master -force