Depends on your device state. If you've unlocked your bootloader already, you should only need to wipe system-level partitions (which would affect applications, but not user storage).
But if you haven't, you need to do that first, which requires you to wipe your entire device, including data.