The only way is to revoke access. Perhaps doing it via API is an option, but I believe it will be more work than revoking via the dashboard.
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.