android+ => delete a file every day => how to ?
- 29 October 2018
- SOTI MobiControl - Android
6 Answers- 0 Upvote
- 1 Follower
6 Answers
Hello
You may use a File Sync rule to download a dummy (0 bytes) file to devices and leverage the option to execute a script in order to delete de file you need. This rule may be schedule to run once a day.
Edgar's solution should work well for this scenario. Out of curiosity, which log file are you having to regularly delete? Is it a business application or one of the Zebra tools?
Hello edgar,
thanks for your step that's great ...
Hello matt,
thanks for your time yes it's a log file from our app ...
Not a zebra file :)
Good day
I cannot see a way of adding the script to the file sync rule. I can create the rule but I am not getting the oprion to add the script.
How do you add the script to the rule?
Hello,
make just a file sync file exemple download a file from server (file is empty)
And on the screen (file sync script) when creating the file sync rules add a script as this :
del /sdcard/PATH TO FILE NAME
If you meet some problem send me a private message i will send you the complete step
hope this help