# Removed dev Pkg before free (1.6 and 1.7)

**URL:** <https://discourse.julialang.org/t/removed-dev-pkg-before-free-1-6-and-1-7/72428>\
**Category:** General Usage\
**Tags:** pkg\
**Created:** [December 2, 2021, 4:56am UTC](https://discourse.julialang.org/t/removed-dev-pkg-before-free-1-6-and-1-7/72428 "2021-12-02T04:56:55Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![jacob-roth](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jacob-roth/32/1862_2.png) [@jacob-roth](https://discourse.julialang.org/u/jacob-roth)\
**Post date:** [December 2, 2021, 4:56am UTC](https://discourse.julialang.org/t/removed-dev-pkg-before-free-1-6-and-1-7/72428/1 "2021-12-02T04:56:55Z")

</div>

I `add`ed a package and then `dev`’ed it and then removed it before `free`ing it. Now I am getting an error that I can’t fix. I removed the `registries` directory and also downloaded julia 1.7 and started fresh, but I get the following error:

```julia
(@v1.7) pkg> add https://github.com/jacob-roth/PowerDynamics.jl.git
     Cloning git-repo `https://github.com/jacob-roth/PowerDynamics.jl.git`
ERROR: failed to clone from https://github.com/jacob-roth/PowerDynamics.jl.git, error: GitError(Code:ERROR, Class:OS, could not remove directory '/Users/myuser/.julia/clones/231828409692979274/refs/remotes/origin/compathelper/new_version/2020-08-01-00-06-19-852-2271493462': parent is not directory: Not a directory)

```

The clone `'/Users/myuser/.julia/clones/231828409692979274/` does not exist. What can I do?

Reposted here: `https://stackoverflow.com/questions/70228185/removed-dev-pkg-before-free-1-6-and-1-7`

---

<div class="post-metadata">

**Author:** ![albheim](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/albheim/32/34660_2.png) [@albheim](https://discourse.julialang.org/u/albheim)\
**Post date:** [December 2, 2021, 6:45am UTC](https://discourse.julialang.org/t/removed-dev-pkg-before-free-1-6-and-1-7/72428/2 "2021-12-02T06:45:12Z")

</div>

Maybe deleting the Manifest.toml for the environment you are using could help?

---

<div class="post-metadata">

**Author:** ![jacob-roth](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jacob-roth/32/1862_2.png) [@jacob-roth](https://discourse.julialang.org/u/jacob-roth)\
**Post date:** [December 2, 2021, 4:10pm UTC](https://discourse.julialang.org/t/removed-dev-pkg-before-free-1-6-and-1-7/72428/3 "2021-12-02T16:10:42Z")

</div>

I downloaded 1.7 and tried this, so I think that this happened even with a fresh `Manifest` file

---

<div class="post-metadata">

**Author:** ![jacob-roth](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jacob-roth/32/1862_2.png) [@jacob-roth](https://discourse.julialang.org/u/jacob-roth)\
**Post date:** [December 4, 2021, 6:20pm UTC](https://discourse.julialang.org/t/removed-dev-pkg-before-free-1-6-and-1-7/72428/4 "2021-12-04T18:20:11Z")

</div>

Deleting the whole `.julia/` directory didn’t resolve this.

---

<div class="post-metadata">

**Author:** ![jling](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jling/32/212909_2.png) [@jling](https://discourse.julialang.org/u/jling)\
**Post date:** [December 4, 2021, 6:58pm UTC](https://discourse.julialang.org/t/removed-dev-pkg-before-free-1-6-and-1-7/72428/5 "2021-12-04T18:58:53Z")

</div>

this shouldn’t be happening, deleting `.julia` should clean up everything. Unless you’re using a project somewhere else, other wise it would be your system’s issue (like filesystem permission and so on)

---

<div class="post-metadata">

**Author:** ![jacob-roth](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jacob-roth/32/1862_2.png) [@jacob-roth](https://discourse.julialang.org/u/jacob-roth)\
**Post date:** [December 4, 2021, 7:32pm UTC](https://discourse.julialang.org/t/removed-dev-pkg-before-free-1-6-and-1-7/72428/6 "2021-12-04T19:32:13Z")

</div>

I wonder if it’s an issue with my git or `Pkg`, since the clone doesn’t exist on my machine, but `Pkg` still keeps trying to find it? I `rm`d `Pkg` and retried, but that didnt help.
