If you are locked out of your device or want to wipe data without a passcode, you can use iTunes or Finder on a Mac computer to erase data.