# How to remove \`ENV\` variable or how to \`Pkg.add\` by setting http(s) proxy to nothing?

**URL:** <https://discourse.julialang.org/t/how-to-remove-env-variable-or-how-to-pkg-add-by-setting-http-s-proxy-to-nothing/13140>\
**Category:** General Usage\
**Created:** [August 10, 2018, 3:11am UTC](https://discourse.julialang.org/t/how-to-remove-env-variable-or-how-to-pkg-add-by-setting-http-s-proxy-to-nothing/13140 "2018-08-10T03:11:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![xiaodai](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/xiaodai/32/15937_2.png) [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Post date:** [August 10, 2018, 3:11am UTC](https://discourse.julialang.org/t/how-to-remove-env-variable-or-how-to-pkg-add-by-setting-http-s-proxy-to-nothing/13140/1 "2018-08-10T03:11:23Z")

</div>

On my laptop `ENV["HTTP_PROXY"]` is usually set to some value. However to install some package I need to not use the `HTTP_PROXY` temporarily. In R I can just set the `HTTP_PROXY` to `""` then it will work fine, but in Julia 0.7 `ENV["HTTP_PROXY"] = ""` followed by `Pkg.add("DataFrames")` gives this error

> Error: failed to clone from [GitHub - JuliaRegistries/General: The official registry of general Julia packages](https://github.com/JuliaRegistries/General.git), error: GitError(Code:ERROR, Class:Net, invalid URL:“”)

so I think I can solve this by removing `ENV["HTTP_PROXY"]` or removing it entirely, but I can’t find how do do it? I tried setting it to `""`, `nothing`, and `missing`.

---

<div class="post-metadata">

**Author:** ![kevin.squire](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kevin.squire/32/62_2.png) [@kevin.squire](https://discourse.julialang.org/u/kevin.squire)\
**Post date:** [August 10, 2018, 3:59am UTC](https://discourse.julialang.org/t/how-to-remove-env-variable-or-how-to-pkg-add-by-setting-http-s-proxy-to-nothing/13140/2 "2018-08-10T03:59:12Z")

</div>

Try

```julia
delete!(ENV, "HTTP_PROXY")

```

Cheers,  
Kevin
