Mathematica Stack Exchange is a question and answer site for users of Mathematica. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How might I be able to prevent a Cell form being deleted when you press the Delete key?

Maybe there is a way to display some type of Dialog when you attempt to delete(or cut) a cell?

share|improve this question
up vote 2 down vote accepted

The option is Deletable:

Deletable is an option for Cell which specifies whether the cell can be deleted interactively using the front end.

You can set it either programmatically as shown in the documentation linked above, or with the Option Inspector (Shift+Ctrl+O on Windows).

enter image description here

share|improve this answer
Ideally I am just looking for a way to double check that the user wants to Delete the cell, and not necessarily prevent it entirely. I see tried and DeleteWithWarning but it didn't seem to work, might you have any other ideas? – Liam Jul 11 '13 at 21:21
@Liam I don't know of an option for that, but I'll think about it. – Mr.Wizard Jul 12 '13 at 1:34

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.