I don't understand what you meant. Code for what? Anyways, the code to restore your Nokia phone to factory setting is *#7780#. If password is required, by default its 123456. Restoring factory setting is useful when you are selling your handset as this will erase everything and set it to the same settings when you first bought it.