If I found out a school deleted files from one of my kid's personal devices without my permission, I'd be livid.
If the school cannot provide a necessary resource, that's a larger problem.
If you're not treating kids' devices as special in a bad way, you'd never even think of making that the rule!