Edit elements in palette and menu

Hello, I need help, I want to remove some items from that menu, also customize them
Captura
I also want to remove items from that palette
Captura.PNGññ
I am new to this and I am still confused, could you please tell me how to solve this and what files should I modify?

I am very grateful, blessings

In order to edit the palette and replace menu, you need to add Palette and PopupMenu providers that override existing entries and feed extra entries.

Your providers should do something like this:

getPaletteEntries(element) {
  return function (entries) {
    entries.delete['entry-id'];

    return {
        ...entries,
        'new-entry-id': { .... }
    }
}

For a full example, please have a look at this.