Avoid removing the built in two line keys as they are needed by CTI and possibly some other functions.
Just FYI, we do not provide any support for custom templates, but if you open a thread in the IP Phones section, some other members may be able to assist you. https://www.3cx.com/community/forums/ip-phones.77/