It looks like @antoniovazquezblanco created a PR for this here: Add a particle cli command for clearing wifi credentials · Issue #597 · particle-iot/particle-cli · GitHub
But it was never merged. Not sure where it stands, but to the owner(s) of this repo it would be great to be able to clear WiFi credentials via Particle CLI vs. manually pressing buttons. Thanks!