title: Xamarin.Android: Delete SMS after sending
body: <p>I want to send a SMS and delete the message afterwards (within an hour or two, to be able to check the delivery state).<br>
  This is the code I use for sending SMS:</p>
  
  <pre><code>SmsManager.Default.SendTextMessage(contact.Text, null,
  message.Text, null, null);
  </code></pre>
  
  <p>How can I delete the message? I found a code for deleting SMS as below :</p>
  
  <pre><code>ContentResolver.Delete(Android.Net.Uri.Parse("content://sms/" + pid), null, null);
  </code></pre>
  
  <p>but I don't know how to get <strong>pid</strong> of sent message.</p>