Is it possible to delete a name present hundreds of times in the index of names without deleting it individually for hundreds of times?

In my text there is a name that occurs hundreds of times so I decided to delete it from the index of names. Having already entered the tag, how can I do to make it faster to replace the name with a simple name marks the index tag? Doing it one at a time would be a huge job. Thank you

Excuse me. I forgot to specify that when I talk about files I don’t mean a normal .odt file but a master .odm file in which I have created an index that contains a reference that is present in almost all pages, for hundreds of occurrences.

This is a workaround, not a perfect solution.

Golden rule: work on a copy of your document

  • Save your document as .fodt (Flat XML ODF Text Document)

  • Open the resulting .fodt with a text editor

  • A name to be entered in the index is marked up as follows:

      <text:alphabetical-index-mark-start text:id="IMark…" />name<text:alphabetical-index-mark-end text:id="IMark…" />

    where the … stands for a unique numeric id,

    or, in case you defined specifically the key

      <text:alphabetical-index-mark text:string-value="key" />name
  • Search for the adequate variants, preferably with a regular expression, to delete the XML elements, keeping the “name” ot replacing the parts you need.

  • When done, reopen the modified .fodt with Writer and save anew as .odt.

EDIT 2021-07-29

Your edit tells the index marks are not in the master document (where you only insert the Alphabetical Index), but in the individual .odt subdocument files.

Apply the above workaround to every subdocument files.

If you have any index marks in the own text of the master (in addition to the Alphabetical Index insertion), don’t apply the workaround because you’ll lose the master property (a master cannot be saved as a fodt without reverting to ordinary document). Instead, remove the index references manually.

To show the community your question has been answered, click the ✓ next to the correct answer, and “upvote” by clicking on the ^ arrow of any helpful answers. These are the mechanisms for communicating the quality of the Q&A on this site. Thanks!

In case you need clarification, edit your question (not an answer which is reserved for solutions) or comment the relevant answer.

Note: Writer is not a text editor.

Edit > Find and Replace

ctrl+H is the key shortcut for it.