Is there a way to programmatically perform a factory reset on an Android device?

Understanding how incredibly dangerous this question is, I’d like to know if it is possible to programmatically issue a factory reset, as available in Droid and G1. Does anyone know how this is implemented? Is this implemented using the standard Android SDK, a Motorola-specific function, or something else?


There is no means in the SDK to initiate a factory reset.