They aren't - in no other situation would anyone be allowed to delete random information off the device of an adult who broke some private rule. The only thing they could generally do is kick you out of wherever you are and tell you to not come back.