android+ => delete a file every day => how to ?

Solved Locked
C
Christophe
Post & Telecommunications Luxembourg

Hello all,

we use soti as a MDM in version : 13.3.0.3454

we have a lot of device zebra tc 75 under android.

I would like to know How i can delete a file every day ?

in fact, every day we have a log file and we'd like to delete it ?

How i can do that ?

thanks in advance 

ps : i've notice in under IE, the field description of this site is not DISPLAY !!!!!!

for to post a question, i need to used chrome

Edited 6 years ago
Android
ANSWERS
EG
Edgar Gomez
7 years ago

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.

Solution
MD
Matt Dermody Diamond Contributor
7 years ago

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? 

C
Christophe
7 years ago

Hello edgar,

thanks for your step that's great ...

C
Christophe
7 years ago

Hello matt,

thanks for your time yes it's a log file from our app ...

Not a zebra file :)

B
Bless
6 years ago

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?

C
Christophe
6 years ago

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