- Execution on tests (Go)
- Required permissions
In french: SMSSupprime
From version 25
, this function should no longer be used. Starting with Android 4.4, SMS deletion through programming is no longer allowed. Using this function causes a fatal error in the application.
Deletes an SMS message from the memory of the Android phone.
The system no longer allows SMS deletion through programming since Android 4.4.
<Result> = SMSDelete(<Location> , <SMS index>)
- True if the SMS was deleted,
- False otherwise. To get more details on the error, use ErrorInfo with the errMessage constant.
From Android 4.4 (Kit Kat), the system no longer allows SMS deletion from the inbox. SMSDelete
will always return False
<Location>: Integer constant
Location of SMS to delete:
|smsMemory||SMS stored in the device memory.|
|smsSIM||SMS stored in the SIM card
This constant is not allowed and it triggers a fatal error.
<SMS index>: Integer
Index of the SMS message to be deleted. This index is returned by the SMS.Index variable. For more details, see SMS structure.
Calling this function changes the permissions required by the application.