Deleting files older than 90 days

Solved
ÖC
Ömercan C.
Spital STS AG

Good day, I need assistance with a task. I want to delete files that are for example, older than 90 days. Using a "del" script, I can delete the files, but how do I specify that only files older than 90 days should be deleted? Do you have any ideas? Thank you

MobiControl v2024.1.0

Android Enterprise Managed

a year ago
Android Scripting
ANSWERS

There's nothing in legacy but you may look into javascript.

In the documentation there's only something to list the files so it must be something default javascript procedure but I'm not really firm with JS.

ÖC
Ömercan C.
a year ago

Thanks for your response. Does anyone know how can I do it with JS?

R
Robert
a year ago
Solution

Nice, i haven't had in mind it's already somehow implemented in the Soti JS-API. So i think this will help Ömercan perfectly.

ÖC
Ömercan C.
a year ago

It worked, thank you very much