How to change a role of node

hi!I have a node for etcd and work, and now I want to remove etcd and keep only work. However, if the production application service is already deployed on the node, how can you change the role of the node without deleting the node? I tried to search and install rancher cli using the rancher node update command but found that it did not work. Is the node update command invalid? rancher version 2.5 rancher cli version 2.4.1