the process to replace a stack switch member is here https://documentation.meraki.com/MS/Stacking/Switch_Stacks#Replacing_and_Cloning_Stack_Members and yes, the license warning will go away when you complete the process above as you won't be using more switches than you're licensed for.
... View more