removing git repository correctly