Custom character style in .ott - unused - though used - removal

One problem with my .ott. Recently added custom charcter style to it, with the intention to use style in derived .odt’s. To do that i selected one Writer’s stock character style then invoked Create New from Selection. I handle in Styles Sidebar. Unfortunately resulting new custom char style presents different attributes (in terms of its presentation in Styles sidebar) - different as the style I had selected when creation got started - issue A. I only created that one style, no other modification in template document. Due to discrepancy in character appearance I want to delete the custom style created newly however Writer screams loudly this style to be used in document. It was never my intention to apply this style to any text as far as that template is concerned. I want to delete it but isn’t possible as of this situation - issue B. I also saved the template to .fodt for further analysis and see in xml -viewer one single occurrence of name of my new character custom style - style definition.

Deepwiki Devin proposes to ScriptForge API (macro) and the function DeleteStyle as workaround. Myself dealt never before with that API - unsure how quick I will be able to start that macro.
Regarding discrepancies in character look&feel (only the sidebar Styles used so far) Devin finds out what I don’t understand how can it help me, cit.: Why the new style looks different: “Create New from Selection” (SID_STYLE_NEW) uses the selected style as a reference, but attribute copying is performed by the document’s style creation logic (e.g., FillByEx for paragraph styles; analogous for character styles). If the reference isn’t passed correctly or attributes are reset during creation, the resulting style may not match the source appearance.

My .ott is registered with Writer and in my use for weeks/months.

EDIT
Writer is protesting upon user attempt to remove custom style created newly, however answering the prompt by “yes, please delete it” results in: template stored to .fodt comprises no occurrence of style name - this resolves solves issue B.

Deepwiki Devin AI as assistant in my questions, open-points around use/problems with Writer - #4 by fpy

Be more specific please.
This question paragraph 1 describes the problem.

Is Track Changes enabled in your template? If so, Writer locks the new style in order to be able to restore the previous state. Either disable Track Changes or accept the changes in order to clear the changes cache.

Not that me were aware of it. Is tracking changes such a feature if enabled I would have seen it immediately during my writing works? If this is true, then my answer’s sound is No, not enabled. Fortunately I have in template a minimal content (in contrary to my initial plans to use template only for management of styles). I have performed a low number of modifications within that minimal content and could observe no tracking of document changes. However my remembering is mainly what a form tracking’s look&feel in Microsoft suite has. In LO not used that frequency so far. I will double check as soon as I have Writer in front of me again.

Then this selection has applied the new style.

To generate an independent character style right-click on “No character Style” and use “New” from that context menu. To generate an derived character style that uses settings of its parent, right-click on an existing character style and use item “New” from the context menu.

The only intention is to have (as of time being; mid- and long-term who knows, maybe this will change) one custom style (characters) similar to one of those styles Writer-stock. However, so far I practice merely the derivation of custom style from the existing one. Desired modifications to created custom style are still pending*. I can’t progress to next step (the *) due to problems communicated here. Style manager bar has a number of ways to create custom style from existing one. We seem to use everyone of his/her own preference. You use one, me uses the another, however both are expected to lead to same goal.

No. New and New from Selection won’t give the same result except if you are extremely cautious.