I am using LibGit2Sharp
to clone a remote repository into the windows temp folder. After my script has completed, I want to clean up. However, I always get the following error:
SystemError: Access to the path 'pack-efcef325f8dc897099271fd0f3db6cf4d9f12393.idx' is denied.
where pack-efcef325f8dc897099271fd0f3db6cf4d9f12393.idx
is a file in $local_git_clone_path\objects\pack.
How can I completely delete all local leftovers of the git repo I cloned using LibGit2Sharp ?