# How to remove non-empty Pluto.jl cell without hassle

**URL:** <https://discourse.julialang.org/t/how-to-remove-non-empty-pluto-jl-cell-without-hassle/136774>\
**Category:** Pluto\
**Tags:** pluto\
**Created:** [April 19, 2026, 10:16am UTC](https://discourse.julialang.org/t/how-to-remove-non-empty-pluto-jl-cell-without-hassle/136774 "2026-04-19T10:16:09Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![lilachint](https://avatars.discourse-cdn.com/v4/letter/l/ee7513/32.png) [@lilachint](https://discourse.julialang.org/u/lilachint)\
**Post date:** [April 19, 2026, 10:16am UTC](https://discourse.julialang.org/t/how-to-remove-non-empty-pluto-jl-cell-without-hassle/136774/1 "2026-04-19T10:16:09Z")

</div>

I just accidently messed something up terribly, but was not expecting the next cell’s error to be millions of lines long! It froze the page completely, reloading the page would make it unfreeze, but if I scroll down and try to remove/fix the cell, it just white screens and freezes again. There’s a keyboard shortcut to delete empty cells but none for deleting a non-empty one like in Jupyter.

Would it be possible to add a delete button just below the show/hide code button located near the top of the cell? Even better, would it be possible to add a toggle to hide output/errors?

---

<div class="post-metadata">

**Author:** ![lilachint](https://avatars.discourse-cdn.com/v4/letter/l/ee7513/32.png) [@lilachint](https://discourse.julialang.org/u/lilachint)\
**Post date:** [April 19, 2026, 10:26am UTC](https://discourse.julialang.org/t/how-to-remove-non-empty-pluto-jl-cell-without-hassle/136774/2 "2026-04-19T10:26:42Z")

</div>

A temporary fix was to use some Chrome extension to remove the output block on click (developer console would be too laggy to enter). But I really hope something more could be done!

---

<div class="post-metadata">

**Author:** ![Benny](https://avatars.discourse-cdn.com/v4/letter/b/49beb7/32.png) [@Benny](https://discourse.julialang.org/u/Benny)\
**Post date:** [April 19, 2026, 11:06am UTC](https://discourse.julialang.org/t/how-to-remove-non-empty-pluto-jl-cell-without-hassle/136774/3 "2026-04-19T11:06:26Z")

</div>

Does closing and reopening in safe preview mode let you delete the cell without freezing, before the notebook is run?

---

<div class="post-metadata">

**Author:** ![lilachint](https://avatars.discourse-cdn.com/v4/letter/l/ee7513/32.png) [@lilachint](https://discourse.julialang.org/u/lilachint)\
**Post date:** [April 19, 2026, 11:21am UTC](https://discourse.julialang.org/t/how-to-remove-non-empty-pluto-jl-cell-without-hassle/136774/4 "2026-04-19T11:21:20Z")

</div>

I’m new to Pluto, according to the docs it would default to Safe Preview Mode on opening a notebook, however it seems to not be the case when I saved the notebook locally and opened it? There’s no prompt asking me to execute code or whatsoever and everything is already ran.

---

<div class="post-metadata">

**Author:** ![ederag](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ederag/32/4106_2.png) [@ederag](https://discourse.julialang.org/u/ederag)\
**Post date:** [April 19, 2026, 12:26pm UTC](https://discourse.julialang.org/t/how-to-remove-non-empty-pluto-jl-cell-without-hassle/136774/5 "2026-04-19T12:26:05Z")

</div>

> seems to not be the case when I saved the notebook locally and opened it?  
> There’s no prompt asking me to execute code or whatsoever and everything is already ran.

Clicking an item in the “recent notebooks” list (in the Pluto starting page)  
just opens an already running notebook (not stop and restart).

To start afresh and get the “Safe Preview mode”,  
click the cross to the right of the notebook name to stop it,  
and only then click on the notebook name to start it.

---

<div class="post-metadata">

**Author:** ![lilachint](https://avatars.discourse-cdn.com/v4/letter/l/ee7513/32.png) [@lilachint](https://discourse.julialang.org/u/lilachint)\
**Post date:** [April 19, 2026, 12:43pm UTC](https://discourse.julialang.org/t/how-to-remove-non-empty-pluto-jl-cell-without-hassle/136774/6 "2026-04-19T12:43:52Z")

</div>

I see! Thank you very much I’m just too new to this and didn’t even think of this at all. It should work now. However, I do believe a toggle for show/hide output would be a nice idea!

---

<div class="post-metadata">

**Author:** ![fonsp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fonsp/32/222349_2.png) [@fonsp](https://discourse.julialang.org/u/fonsp)\
**Post date:** [April 30, 2026, 11:43am UTC](https://discourse.julialang.org/t/how-to-remove-non-empty-pluto-jl-cell-without-hassle/136774/7 "2026-04-30T11:43:01Z")

</div>

You can show/hide output by adding a `;` at the end of your cell code. But if the cell errors, the error message will always be displayed.

Like suggested, [Safe Preview](https://plutojl.org/en/docs/files/#preview) is the way to solve this.
