How to remove default template element from BPMNJS

I think you can then simply use my answer from the other thread and modify the custom palette provider from this thread by your custom palette entries. Note that getPaletteEntries has to return a function to handle the existing entries (deletion, updating).