There are situations in which you want to totally remove the repository from your local, suppose you have messed up the code in your local copy and want to get rid of the same completely, then you can completely delete the local repository and clone a new copy from the remote repository and start using it.
To delete a local repository use the following steps.
1. Open Source tree2. Select the local repository, right click and select delete
3. In the confirmation box which appears, select the option ‘Delete Repositories on Disk’
4. This will remove the local repository.