From the GSM Hosting Forums:

Nokia X2-01 Format and Factory Reset Code

1.Nokia X2-01Soft Reset
This will return back your X2-01 to its factory setting :

1. Dial or Key in *#7780#
2. Press...