Delete files external storage (java)

Post your questions and help other users.

Moderator: Martin

Post Reply
User avatar
Rafi4
Posts: 281
Joined: 01 Dec 2017 05:23

Delete files external storage (java)

Post by Rafi4 » 23 Jun 2020 00:22

Hi anuraag and all
Below script is deleting files in internal storage only. How can I delete files in external storage(sd card)?

Code: Select all

file = callJavaConstructor("java.io.File", "File(java.lang.String)", "/storage/extSdCard/Wall papers/rMO--jHdH3Q.jpg");
callJavaMethod(file, "java.io.File", "delete()")
No.1 Automation app in play store Automagic Premium
Samsung Galaxy j2 non rooted.
Android 5.1.1

Post Reply