Programmatically delete sms / message by sms id in android

How to delete all messages from android inbox or sent folders, without loop

How to get message ids

Use following simple function to delete sms from default android application / database.

use this permission in AndroidManifiest

 


  • Sai Soe Harn

    sms don’t delete permanently with your code.

  • Bishwajeet Biswas

    not working……delete method returns 0 row affected.

    • http://wisdomitsol.com Atif

      Are you passing correct message id?

  • Praveen Parihar

    not working..