Thanks to visit codestin.com Credit goes to libgit2.org
Prune working tree
Prune the working tree, that is remove the git data structures on disk. The repository will only be pruned of git_worktree_is_prunable succeeds.
git_worktree_is_prunable
Worktree to prune
Specifies which checks to override. See git_worktree_is_prunable. May be NULL
0 or an error code