How to reset nokia 5200 security code?

Go to settings, select restore factory setting option, which should reset the security code.