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.

by (150 points)

1 Answer

0 votes
 
Best answer
The syntax is correct. Please try using the path:    /Documents/MyDir

To monitor the results, you can enable launcher log collection:

https://qa.h-mdm.com/1573/how-to-turn-on-the-launcher-logs
by (18.9k points)
selected by
It works with the path format you provided.

Thank you.
...