It won't delete contacts and conversation history either, which is what you usually want to do when you are selling the phone. On the other hand, it will remove all directories, not just files in them, which means that the new owner won't be able to take pictures, browse or even download maps, and who know what else.