Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7638601
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T08:12:53+00:00 2026-05-31T08:12:53+00:00

I am currently trying to delete a SMS from the SMS table from android.

  • 0

I am currently trying to delete a SMS from the SMS table from android.
I used this to delete the SMS but there are errors.
Is this the correct syntax?
the messageID is the id of the message to be deleted.

Uri uriSMSURI = Uri.parse("content://sms/inbox/" + messageID);

 getContentResolver().delete(uriSMSURI, null, null);
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T08:12:54+00:00Added an answer on May 31, 2026 at 8:12 am

    for deleteing an sms you must add these permissions in AndroidManifest.xml:

    <uses-permission android:name="android.permission.WRITE_SMS"> </ uses-permission>
    <uses-permission android:name="android.permission.READ_SMS"> </ uses-permission>
    

    URI’s for reading and deleting sms:

    //Available Uri string
      String strUriInbox = "content://sms/inbox";//SMS_INBOX:1
      String strUriFailed = "content://sms/failed";//SMS_FAILED:2
      String strUriQueued = "content://sms/queued";//SMS_QUEUED:3
      String strUriSent = "content://sms/sent";//SMS_SENT:4
      String strUriDraft = "content://sms/draft";//SMS_DRAFT:5
      String strUriOutbox = "content://sms/outbox";//SMS_OUTBOX:6
      String strUriUndelivered = "content://sms/undelivered";//SMS_UNDELIVERED
      String strUriAll = "content://sms/all";//SMS_ALL
      String strUriConversations = "content://sms/conversations";//you can delete one conversation by thread_id
      String strUriAll = "content://sms"//you can delete one message by _id 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Currently I'm trying this: $sql_words = array(select,update,set, from, where, and, order by,insert into,delete); echo
I am trying to delete rows from a table (lovalarm) where a field (pointid)
I am currently trying to insert data into a table called customer_quote , this
Im currently trying to downlaod a audio track from a WCF, i need some
I am currently trying to read from an xml file which records the jobs
I have done create,edit functionality & trying to do delete functionality but by default
I am currently trying to call a method from my view to change a
I'm trying to delete a record from the GAE datastore via an ajax query
Currently I'm trying to make an ajax entry delete function, when I click on
I'm currently trying to write a small service to delete one directory and all

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.