Welcome to Headwind MDM Q&A, where you can ask questions and receive answers from other members of the community.

Please do not post bug reports, missing feature requests, or demo inquiries. If you have such an inquiry, submit a contact form.

0 votes

Hello,

I am trying to use the Push Message feature to delete a specific folder on my devices, but it does not seem to work.

I selected the message type deleteDir and used the following configuration:

Payload: {"path": "/storage/emulated/0/Documents/MyDir"}

The issue: After sending the push message, the device receives the command (I see the notification/log), but the directory /storage/emulated/0/Documents/MyDir is not deleted and remains on the storage.

Questions:

  1. Is my JSON payload syntax correct for the deleteDir command?

  2. Does the Headwind MDM agent require any specific permissions (like MANAGE_EXTERNAL_STORAGE for Android 11+) to perform this action?

  3. Are there any specific logs I should check to debug why the deletion fails?

Environment:

  • Device OS: Android 13

  • Headwind MDM Version: 6.26-master

Thank you for your help.

ago by (120 points)

Please log in or register to answer this question.

...