For root folder -> git rm -r myFolder For sub folder -> git rm -r publicmyFolder git commit -m 'myFolder is deleted' git push