Forum Discussion
LKits
Aug 21, 2021Copper Contributor
Android delete app data on schedule
Hello! Is it somehow possible to delete Android apps data on schedule, for example every night? Asking because devices are being used by students without personal accounts and I'd like to erase ...
pvanberlo
Aug 21, 2021MCT
There is no out of the box functionality to do this. You could however implement something like this using scheduled PowerShell scripts. The Microsoft.Graph module has a cmdlet to initiate a wipe, see the URL below. Keep in mind that a wipe request may take some time to complete.
https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.devicemanagement.actions/clear-mgdevicemanagementmanageddevice
https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.devicemanagement.actions/clear-mgdevicemanagementmanageddevice