# How to clear old plots from Plot Navigator?

**URL:** https://discourse.julialang.org/t/how-to-clear-old-plots-from-plot-navigator/84928
**Category:** VS Code
**Tags:** question
**Created:** [July 28, 2022, 4:34pm UTC](https://discourse.julialang.org/t/how-to-clear-old-plots-from-plot-navigator/84928 "2022-07-28T16:34:48Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![selim](https://avatars.discourse-cdn.com/v4/letter/s/51bf81/32.png) [@selim](https://discourse.julialang.org/u/selim)
#### Post date: [July 28, 2022, 4:34pm UTC](https://discourse.julialang.org/t/how-to-clear-old-plots-from-plot-navigator/84928/1 "2022-07-28T16:34:48Z")

</div>

Hi, I can’t find a way to clear plots without restarting vscode completely. Is there a shortcut or a button for that? Here in the image there are old plots that I can’t clear from old runs. Restarting julia repl doesn’t do anything.

 ![image](https://global.discourse-cdn.com/julialang/original/3X/8/f/8f73a0d9b9986983a0047d67a09e9771e9e42992.png)

---

<div class="post-metadata">

### Author: ![pfitzseb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pfitzseb/32/45566_2.png) [@pfitzseb](https://discourse.julialang.org/u/pfitzseb)
#### Post date: [July 28, 2022, 6:44pm UTC](https://discourse.julialang.org/t/how-to-clear-old-plots-from-plot-navigator/84928/2 "2022-07-28T18:44:49Z")

</div>

Does the `Julia: Delete All Plots` command work for you?  
Note that that’s also in the plot pane title menu:  
 ![grafik](https://global.discourse-cdn.com/julialang/original/3X/5/4/54b9ecbf2f0f4705db6b5ef62122ad3c5ba5e86e.png)

---

<div class="post-metadata">

### Author: ![selim](https://avatars.discourse-cdn.com/v4/letter/s/51bf81/32.png) [@selim](https://discourse.julialang.org/u/selim)
#### Post date: [July 28, 2022, 8:20pm UTC](https://discourse.julialang.org/t/how-to-clear-old-plots-from-plot-navigator/84928/3 "2022-07-28T20:20:07Z")

</div>

I can’t find that option. (Latest VSCode and Julia plugin)

Edit: I think there is a bug causing those options not to show but if I click on the title bar of the plot explorer they appear. I recorded a quick video of it, have a look: [Julia Plots Bug - YouTube](https://youtu.be/OVZXA5Dtvcw)

---

<div class="post-metadata">

### Author: ![jmair](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jmair/32/35117_2.png) [@jmair](https://discourse.julialang.org/u/jmair)
#### Post date: [July 29, 2022, 8:38am UTC](https://discourse.julialang.org/t/how-to-clear-old-plots-from-plot-navigator/84928/4 "2022-07-29T08:38:56Z")

</div>

This seems to be because your code is still executing and producing graphs. I think you could access this command through the command palette (`Ctrl+Shift+P` - `Cmd+Shift+P` on Mac I think).

---

<div class="post-metadata">

### Author: ![selim](https://avatars.discourse-cdn.com/v4/letter/s/51bf81/32.png) [@selim](https://discourse.julialang.org/u/selim)
#### Post date: [July 29, 2022, 1:17pm UTC](https://discourse.julialang.org/t/how-to-clear-old-plots-from-plot-navigator/84928/5 "2022-07-29T13:17:47Z")

</div>

I tried it when the code finished executing in the video. The shown graph is a gif created by the code beforehand. I tried this with non-gif graphs too.

---

<div class="post-metadata">

### Author: ![jmair](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jmair/32/35117_2.png) [@jmair](https://discourse.julialang.org/u/jmair)
#### Post date: [July 29, 2022, 10:05pm UTC](https://discourse.julialang.org/t/how-to-clear-old-plots-from-plot-navigator/84928/6 "2022-07-29T22:05:12Z")

</div>

You’re right, I didn’t see this was a GIF. The delete all plots should be available, just in case that menu doesn’t show up for you. In my experience the plots panel is tied to the VS code extension, not the REPL, and restarting the REPL has never cleared my plots, which I think is intended.

Does the menu show up for static (not gif) plots? If it is only broken for GIFs, so then I would recommend filing a bug report with in VS code Julia extension repository.

---

<div class="post-metadata">

### Author: ![selim](https://avatars.discourse-cdn.com/v4/letter/s/51bf81/32.png) [@selim](https://discourse.julialang.org/u/selim)
#### Post date: [July 30, 2022, 6:07am UTC](https://discourse.julialang.org/t/how-to-clear-old-plots-from-plot-navigator/84928/7 "2022-07-30T06:07:06Z")

</div>

> [@jmair](#):
>
> Does the menu show up for static (not gif) plots? If it is only broken for GIFs, so then I would recommend filing a bug report with in VS code Julia extension repository.

It’s not only broken for gifs sadly, this happens for all plots. Tried reinstalling everything but that didn’t change anything.

Maybe it’s about Windows 11, I just formatted my drive and installed the OS.

My other guess is the screen scaling. I’m using %150 scaling in Windows settings. (high dpi screen, this is enabled by default)

---

<div class="post-metadata">

### Author: ![pfitzseb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pfitzseb/32/45566_2.png) [@pfitzseb](https://discourse.julialang.org/u/pfitzseb)
#### Post date: [July 30, 2022, 10:46am UTC](https://discourse.julialang.org/t/how-to-clear-old-plots-from-plot-navigator/84928/8 "2022-07-30T10:46:17Z")

</div>

This menu is sometimes a bit janky. Try clicking on the plot pane tab title or plot first.
