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
I need to delete a file on a single device. Can I do that without assigning a new configuration to this device?
by (40.1k points)
edited by

1 Answer

0 votes

Yes, you can remove files and perform other actions on a single device by using the "Push messages" plugin.

Open the plugin by clicking Functions - Push Messages. You can send Push messages to a single device, to a specified group or configuration, or to all your devices.

The following actions are available:

Type

Purpose

Payload

configUpdated

Notify the device about the configuration update

none

runApp

Start an application

{pkg: "app.package.id"}

uninstallApp

Uninstall an application

{pkg: "app.package.id"}

deleteFile

Delete a file (the path is relative to the external storage)

{path: "/path/to/file"}

deleteDir

Delete a directory recursively

{path: "/path/to/dir"}

purgeDir

Delete all files in the directory (optionally, delete subdirectories recursively)

{path: "/path/to/dir", recursive: "1"}

permissiveMode

Turn on permissive mode (do not block anything)

none

reboot

Reboot a device

none

custom

Specify a custom type a payload (this could be used to test third-party applications)

Application-specified

exitKiosk

Turn off kiosk mode on a device

none

clearDownloadHistory

This command must be sent if the app is not being downloaded due to repeating errors on a mobile network

None

by (40.1k points)
edited by
I have tried to use reboot and nothing happens on device. How to make work?


Time                             Device         Type                   Payload     
03/04/2024 09:39:47    TAB-001         reboot
Please check that Push notifications are working by turning on logs (https://qa.h-mdm.com/1573/). You must see records like 'Got a Push message, type ...". If you don't see them, fix the Push issue as described here: https://qa.h-mdm.com/5102/  If you still get an issue, please post it as a separate question as it is not related to Push message topic.
...