how to remove a directory created with git clone code example Example: clone and remove existing git repository git rm -rf git