title: What happens if I delete an SQS Message that another consumer has received?
body: <p>I've got a consumer that I suspect is taking longer than the default Message Visibility to process a given message, but is eventually succeeding. </p>
  
  <ul>
  <li>If <code>Consumer A</code> gets receipt <code>R1M1</code> for message <code>M1</code></li>
  <li>then the visibility timeout elapses</li>
  <li>then <code>Consumer B</code> gets receipt <code>R2M1</code> for message <code>M1</code></li>
  <li>then <code>Consumer A</code> calls <code>deleteMessage(R1M1)</code></li>
  </ul>
  
  <p>is the message deleted, or does it remain on the queue, since another consumer has a more-valid receipt for the message?</p>
  
  <p>I'm observing that many of the more-complicated messages in my queue have many (50-1000) receipts, but I'm not logging any failures to process messages. I suspect that I'm successfully processing each message many times, and then the delete action is silently failing.</p>