Many Android phones and tablets ... so you'll have to go to a bit more trouble to securely erase your data. To reset your Windows Phone, go to Settings, then About, then Reset phone.
For data partitions, you can use tools such as Ascomp Secure Eraser. This will not only delete the files the drive contains, but also overwrite it with random data. With Secure Eraser, click on ...