For Cloudkey

SSH login and factory reset to default

/sbin/ubnt-systool reset2defaults

 

For Access Point

Reset to default
set-default