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.