Overview

This template schedules file cleanup on selected devices or groups, then creates a bulk deletion task at the chosen time. It supports deleting specified files, clearing a folder's contents, or removing a folder with its contents. The workflow also sends a result email, making it suitable as a repeatable operating step for routine device storage cleanup.

The Problem This Workflow Solves

Teams responsible for managed devices often need to remove retired content, temporary files, or outdated folders from a known device path. They must choose the device scope, confirm the folder path, select the cleanup method, and know whether the task finished or needs follow-up.

  • Defined scope. The workflow targets specific devices, groups, or all devices from one configuration.
  • Clear result email. It sends a result message that helps teams review success, warnings, or failures.
  • Reduced manual checking. It waits for task completion and then summarizes device results in pages.

Who This Is For

  • Device operations teams. They clean up managed devices on a schedule and need a consistent deletion process.
  • Teams managing shared groups. They can apply cleanup to selected groups, including subgroups under a parent group.
  • Administrators handling temporary content. They remove files left after events, training sessions, or projects end.

What Sets This Workflow Apart

  • Flexible cleanup modes. It supports deleting files, clearing folder contents, or removing the whole folder.
  • Scope matching. It resolves directly named devices and group selections before creating the deletion task.
  • Repeated status checks. It checks deletion progress every minute and stops when devices are no longer processing.
  • Paged result review. It reads task results in pages and keeps warning and failed device details for the email.

How It Works

1
  1. Prepare the cleanup scope
  2. The workflow reads the selected devices, groups, folder path, cleanup mode, and notification addresses, then checks that the configuration is usable.
2
  1. Create the deletion task
  2. At the scheduled time, it resolves the target scope and submits the bulk deletion task for the chosen files or folder path.
3
  1. Wait for completion
  2. The workflow checks task progress every minute and stops waiting when no target devices are still processing, or after 15 checks.
4
  1. Summarize and send results
  2. It reads the deletion results in pages, counts successes, warnings, and failures, then sends the report to valid email addresses.

What You'll Need

  • AirDroid Business and Gmail credentials
    • Authorized connections are needed so the workflow can create deletion tasks and send result emails.
  • Target scope and cleanup settings
    • Enter device names, group names, or both, plus a full folder path and the cleanup method.
  • Notification email addresses
    • Provide one or more valid recipient addresses for the result email.
  • Schedule setting
    • Select the execution time, and choose one-time run only when the cleanup should happen once.

How to Use

  1. Step 1. Connect the required accounts
  2. Bind the AirDroid Business and Gmail credentials so the workflow can run the task and send the report.

  3. Step 2. Set the schedule
  4. Choose when the cleanup should run, and select a one-time run only if you need a single execution.

  5. Step 3. Enter the cleanup details
  6. Provide device names, group names, a full device path, the cleanup mode, and the recipient email addresses.

  7. Step 4. Confirm the scope carefully
  8. Check that the path and selected targets are correct before running, because deletion cannot be undone.

FAQs

Can I leave the device and group fields blank?
Yes. If both are blank, the workflow targets all devices, so confirm the path before running.
What happens if I choose Delete specified files?
You must enter file names only, not folder paths. The workflow then deletes those files under the folder you entered.
How many devices can the result email cover?
The workflow summarizes results for up to 6,000 devices in the email.
Will deleted files be restored if something goes wrong?
No. The workflow cannot restore deleted files, so the target path should be checked before execution.
Was This Page Helpful?

More Workflows for Inspiration

🔧
Account Activity Log Query and Export
Exports account activity logs from the chosen days, then emails a OneDrive workbook link.
Learn more >
🔧
Device Unenroll and Transfer Log Query
Query recent device unenrollment and group transfer logs, then send an Excel report link by email.
Learn more >
🔧
Auto-add Tags to Alerting Devices
When an alert fires, this workflow tags the target device for faster filtering and follow-up.
Learn more >