# How to remove and change the default project

**URL:** https://discourse.julialang.org/t/how-to-remove-and-change-the-default-project/24085
**Category:** New to Julia
**Tags:** question
**Created:** [May 10, 2019, 4:25pm UTC](https://discourse.julialang.org/t/how-to-remove-and-change-the-default-project/24085 "2019-05-10T16:25:48Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![leiteiro](https://avatars.discourse-cdn.com/v4/letter/l/b5e925/32.png) [@leiteiro](https://discourse.julialang.org/u/leiteiro)
#### Post date: [May 10, 2019, 4:25pm UTC](https://discourse.julialang.org/t/how-to-remove-and-change-the-default-project/24085/1 "2019-05-10T16:25:48Z")

</div>

I installed JuliaPro with version 1.1.0. (on Windows). After opening Atom and starting Julia in the REPL I switch to the pkg-mode. What I see is the prompt:

(ProjA) pkg\>

Now the issue is that “ProjA” _does not exist anymore_ (nor any directory with this name). I do not know where this reference to “ProjA” comes from and I want to get rid of it. I tried several things without success.

What I want is that the name of the current project-folder which is “ProjB.jl” with path “C:\Users\Home\Projects\ProjB.jl” becomes the default project for Julia and that the ghost-project  
“ProjA” is eliminated forever.

How to proceed?

(P.S.: What I would wish for is a mechanism like it exists for other programming environments: Just to click on the file Project.toml and Juno opens this project and sets it up as the default project. Or can this be installed easily?)

---

<div class="post-metadata">

### Author: ![leiteiro](https://avatars.discourse-cdn.com/v4/letter/l/b5e925/32.png) [@leiteiro](https://discourse.julialang.org/u/leiteiro)
#### Post date: [May 24, 2019, 9:18am UTC](https://discourse.julialang.org/t/how-to-remove-and-change-the-default-project/24085/2 "2019-05-24T09:18:43Z")

</div>

The solution:

There is an environment variable JULIA\_PROJECT which was the path to ProjA. But it was not an existing path!

I suggest that anyone who uses this variable (like JuliaPro or VSCode) first checks if it points to something existing and ignores it otherwise! This is currently not the case.

---

<div class="post-metadata">

### Author: ![MatthijsCox](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/matthijscox/32/42831_2.png) [@MatthijsCox](https://discourse.julialang.org/u/MatthijsCox)
#### Post date: [December 14, 2020, 9:42am UTC](https://discourse.julialang.org/t/how-to-remove-and-change-the-default-project/24085/3 "2020-12-14T09:42:37Z")

</div>

I’m struggling with the same problem (on Julia 1.5.2). This issue also means whenever I type `Pkg.activate()` it automatically activates this default project which I want to change back to the original `.julia\environments\v1.5\Project.toml`

I’m trying to figure out how Julia actually sets the default project. I figured out it sets a `Base.HOME_PROJECT[]` which it uses in `Base.init_load_path()`. There it’ll look for `Base.current_project()` which happens to be my latest developed package, i.e. `ProjA` in the above example. `Base.current_project()` just calls `pwd()`.

I can set `Base.HOME_PROJECT[]` in my startup.jl file, but that doesn’t seem ideal. I want to know how I return to the default behavior of automatically using the `.julia\environments\v1.5\Project.toml`

I guess I somehow have to change the default pwd() path upon Julia initialization? How can I do that?

---

<div class="post-metadata">

### Author: ![Tamas\_Papp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tamas_papp/32/25949_2.png) [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)
#### Post date: [December 14, 2020, 10:32am UTC](https://discourse.julialang.org/t/how-to-remove-and-change-the-default-project/24085/4 "2020-12-14T10:32:13Z")

</div>

> [@MatthijsCox](#):
>
> I’m trying to figure out how Julia actually sets the default project

Did you customize the **environment variable** (ie outside Julia) `JULIA_PROJECT` by any chance? See

[https://docs.julialang.org/en/v1/manual/environment-variables/](https://docs.julialang.org/en/v1/manual/environment-variables/)

---

<div class="post-metadata">

### Author: ![MatthijsCox](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/matthijscox/32/42831_2.png) [@MatthijsCox](https://discourse.julialang.org/u/MatthijsCox)
#### Post date: [December 15, 2020, 11:14am UTC](https://discourse.julialang.org/t/how-to-remove-and-change-the-default-project/24085/5 "2020-12-15T11:14:21Z")

</div>

Ok it was only happening in VSCode. Somehow I had set my environment wrong there. It could be fixed by clicking the `Julia env: MyPackage` and setting it back to `Julia env: v1.5`

It’s in the bottom left corner with all the other notifications for me:  
 ![image](https://global.discourse-cdn.com/julialang/original/3X/e/b/ebe73a7549ad4714c9aa757222dc92c1cb1ba44c.png)
