Delete File / Folder Every Booting

Hello everyone, I want to delete file under “/data/data/packagename/xFolder/xFile.temp”
after boot complete. I try add code in in …SDK/vendor/amlogic/frameworks/core/res/com/droidlogic/

new File(dir, children[i]).delete();

but still failed. How must I do?

hello, do you have Android installed?

Yes, I did it. install apk and want to delete the file every boot complete.

Hello, you need root access on the device, you will also need a file manager for the Root user and unlock all permissions in it for working with system files.