# Clear memory after using plot!(...)

**URL:** <https://discourse.julialang.org/t/clear-memory-after-using-plot/121690>\
**Category:** New to Julia\
**Tags:** plots\
**Created:** [October 24, 2024, 10:43am UTC](https://discourse.julialang.org/t/clear-memory-after-using-plot/121690 "2024-10-24T10:43:59Z")\
**Posts on this page:** 4\
**Page:** 2

<div class="post-metadata">

**Author:** ![tomaklutfu](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tomaklutfu/32/2411_2.png) [@tomaklutfu](https://discourse.julialang.org/u/tomaklutfu)\
**Post date:** [October 24, 2024, 7:57pm UTC](https://discourse.julialang.org/t/clear-memory-after-using-plot/121690/21 "2024-10-24T19:57:21Z")

</div>

It is not directly julia, its VS Code extension. They are just png files(or some other image format) in a temporary folder. The extension hooks itself in displaying of plots and saves them as image files in a temporary folder. I think there was clear plots somewhere but I do not remember.

---

<div class="post-metadata">

**Author:** ![tomaklutfu](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tomaklutfu/32/2411_2.png) [@tomaklutfu](https://discourse.julialang.org/u/tomaklutfu)\
**Post date:** [October 24, 2024, 8:07pm UTC](https://discourse.julialang.org/t/clear-memory-after-using-plot/121690/22 "2024-10-24T20:07:38Z")

</div>

I found this [reference](https://www.julia-vscode.org/docs/stable/userguide/keybindings/#Keyboard-shortcuts). It says `Shift+Delete` should delete all plot history.

---

<div class="post-metadata">

**Author:** ![heliosdrm](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/heliosdrm/32/3851_2.png) [@heliosdrm](https://discourse.julialang.org/u/heliosdrm)\
**Post date:** [October 24, 2024, 8:12pm UTC](https://discourse.julialang.org/t/clear-memory-after-using-plot/121690/23 "2024-10-24T20:12:11Z")

</div>

> [@EatMyShorts](#):
>
> Is there a way to clear the counter from ‘Julia Plots (5/5)’ to zero?

Yes, VS Code’s plot pane has a “trash” icon that you can use to delete the current plot; and moreover there is an option to delete them all at once (you have to focus on the plot pane to see the icons and the “dots” menu):

 ![imagen](https://global.discourse-cdn.com/julialang/original/3X/b/f/bf08b7b0a6da56d3ea396c3f3e05ac51bae489d2.png)

---

<div class="post-metadata">

**Author:** ![EatMyShorts](https://avatars.discourse-cdn.com/v4/letter/e/e5b9ba/32.png) [@EatMyShorts](https://discourse.julialang.org/u/EatMyShorts)\
**Post date:** [October 24, 2024, 8:18pm UTC](https://discourse.julialang.org/t/clear-memory-after-using-plot/121690/24 "2024-10-24T20:18:09Z")

</div>

Ah ok … This is very strange!  
I can’t find this option in VS Code on my notebook (Unix OS).  
But these option is available in VS-Code and Windows.

Thank you very much 😉 !

[Previous page](https://discourse.julialang.org/t/clear-memory-after-using-plot/121690.md?page=1)
