You will need to use the Factory Reset option to completely remove any settings or locker patterns. You can do this by turning the power off, hold Left + Right buttons under the display, press and ...
Other questions about "How to format my sony xperia"