As far as I know, this change can only be made through the Meraki Dashboard.
Locate the device in the Meraki Dashboard, remove it from the network, and finally remove it from your inventory.
Once this process is complete, you can reactivate the device.
If it doesn't work, I suggest you contact Meraki support.
I am not a Cisco Meraki employee. My suggestions are based on documentation of Meraki best practices and day-to-day experience.
Please, if this post was useful, leave your kudos and mark it as solved.