The only way you can do this is if your app is set as the default SMS app on the user's device - meaning, your app has to be a complete SMS app with the ability to write, send, receive, manage, etc.
Otherwise if your app is not the default SMS app, then your app will not have the needed permissions to delete an SMS.
The only way you can do this is if your app is set as the default SMS app on the user's device - meaning, your app has to be a complete SMS app with the ability to write, send, receive, manage, etc.
Otherwise if your app is not the default SMS app, then your app will not have the needed permissions to delete an SMS.