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

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

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

6 Answers

Order By:   Standard | Newest | Votes
Edgar Gomez | posted this 29 October 2018

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.

 

  • 0
  • 0
Matt Dermody | posted this 29 October 2018

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? 

  • 0
  • 1
christopheBERNARD | posted this 29 October 2018

Hello edgar,

thanks for your step that's great ...

  • 0
  • 0
christopheBERNARD | posted this 29 October 2018

Hello matt,

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

Not a zebra file :)

 

  • 0
  • 0
Bless | posted this 24 September 2019

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?

  • 0
  • 0
christopheBERNARD | posted this 24 September 2019

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

  • 0
  • 0

Give us your feedback
Give us your feedback
Feedback