Delete several folders on device via script

Solved Locked
BW
Benjamin, Wilts Bronze Contributor
Taneri Consulting GmbH (TCG Global)

Hi,

is there a possibility to delete several folders at once?

I want to remove folders like

151...

153....

159...

etc.

So i tried using script like this: rd /s /enterprise/usr/1* but this is not working.

I can write rd /s /enterprise/usr/151434434304 and it will delete the exact folder.

But I want to delete all folders that begin with 1.

Is there any possibility?

5 years ago
Android Scripting
ANSWERS
J
JVMOD@SOTI Platinum Contributor
5 years ago (edited 5 years ago)

Hello Benjamin,

Thank you for your post, unfortunately, we do not have this feature to delete multiple folders starting with a particular name or number in current versions of MobiControl but you can raise a feature request.

I would like you to create a support case(click here) or call SOTI Support team(click here) to raise a Feature Request to delete multiple folders starting with a particular name or number. These feature requests should be insisted on by customers via a Support case.

To provide you with a heads up, this would not be an instant resolution as SOTI Product Team should communicate with Android Team to leverage this feature to be managed by MobiControl. So, this may take weeks to months to get it included in the new build. Please follow the release notes of SOTI MobiControl to get an update on the improvements done on the new release.

https://docs.soti.net/soti-mobicontrol/release-notes/

 

 

Also, if this post has helped you in solving your inquiry, I would request you to mark the particular comment as "is solution", so others may benefit from this information.

 

 

Regards,

Solution