Here's how to perform a master reset on your BlackBerry Z10.
1. From the homescreen, swipe down from the top of the screen.
2. Tap Settings, and then tap Security and Privacy.
3. Tap Security Wipe, then enter "blackberry" in the box provided and tap Delete Data.
The device will now be reset back to factory settings.