The Q&A How to unset an notebook option programmatically? nearly asks the same question, but the focus there is on how to unset an option that has been given a value. I just want to undo a mistake I made by setting an option that does not exist:
SetOptions[EvaluationNotebook[], Foo -> Bar]
While the Foo -> Bar option does not seem to interfere with the working of the notebook or Mathematica, I'd like to clean up this mistake.
I'd like to keep the other notebook option settings, so copy-pasting the contents would not work exactly as I would like (a method mention in the linked Q&A). Of course I could copy the desired options, too. I'm hoping for a more straightforward solution.
(In fact, in the actual use case, the setting was some data to be stored in TaggingRules. Now the data appear twice in the notebook options, more or less; the TaggingRules version is the up-to-date one.)
Inheritedmore or less do this? – Sjoerd Smit Nov 22 '19 at 22:49"MyData" -> Inheritedand it will be deleted? I'll try it. -- Nope, it seems the option is kept, although the setting is nowInherited. – Michael E2 Nov 22 '19 at 22:50Inheritedmore or less acts as if the option was not there in the first place. – Sjoerd Smit Nov 22 '19 at 22:58