0

I would like to remove all files from my android device INCLUDING system files. I have tried

rm -r *

and other commands but when I switch the phone off the files reappear.

  • You don't have permission to delete anything from a read-only filesystem like the system itself. The most you can do is delete all user data. – GiantTree Mar 2 '17 at 17:28
0

You can't do this from the OS or adb, you would have to do it from fastboot or recovery such as CWM or TWRP.

fastboot erase all - note this will erase EVERYTHING, including your IMEI or MEID and other proprietary settings, the phone will likely be unrecoverable or unusable with most devices. It is blocked in some devices. Use with caution and understand the implications prior to doing this!!!

fastboot erase XXXX - Where XXXX is the partition you want to delete, like system, boot, userdata, etc.

In TWRP or CWM, you could just format the various partitions.

In most devices, these options would require an unlocked bootloader.

  • 1
    To emphasize: erasing everything on a phone is likely to hard brick it, unlike, say, erasing a computer's entire hard drive, which you could later set back up. – Joseph Sible Mar 2 '17 at 20:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.