Fully charge the PB
tap the gear icon at top right,
open "security" tab
perform security wipe.
Here's some hints and tips, and a peculiar but effective vid, that you'd be wise to read before starting.
did a system wipe and lost all apps? - BlackBerry Forums at CrackBerry.com