If you delete before the send is finished, it will normally not transmit; but, because data is transferred in batches, it may have been sent before the phone receives delivery confirmation. The best method is to put the phone on aeroplane mode right away and then erase the message.