How to select all notes or macro to delete all of them?

I need to bulk delete all notes from a long writer document (LO
I tryed with find+replace but couldn’t find a way to find the note insertions.
I guess I need a macro.
If it is simple, can anyone help me?
Thank you.

Do you refer to footnotes/endnotes?

That works fine for me with the extension

Alternative dialog Find & Replace for Writer :

Search for → Extended → [::Footnote::].


(For endnotes select: [::Endnote::])

Graet, thank you. that should really be part of the main software -too useful