delete remote deirecory github code example Example 1: remove git remote git remote remove origin Example 2: git remove from folder rm -rf .git