There are a few ways to turn off voicemail on an iPhone. One way is to dial *61[phone number]# and then press the call button. This will disable voicemail for the phone number you entered. Another way is to go to Settings -> Phone -> Voicemail and then toggle the Voicemail switch to off.