Configure automatic storage cleanup (preview)

Automatic storage cleanup (preview) deletes User Experience Sync storage that hasn't been attached within a period you define. Use cleanup to reclaim pooled capacity from inactive users.

Important

Automatic User Experience Sync storage cleanup is available in public preview.

How automatic cleanup works

Windows 365 evaluates user storage once each day. Storage is eligible for deletion when its Last attached value is older than the configured Days before deletion value.

Cleanup deletes the complete user-storage record and its restore point. It doesn't delete selected files or reduce the provisioned size.

You can run cleanup in either mode:

Mode Behavior
Cleanup based on inactivity Deletes eligible storage during the daily evaluation.
Cleanup only when over quota Deletes eligible storage only while the policy exceeds its pooled storage limit.

Automatic cleanup is separate from the existing service protection for an unresolved exceeded-storage condition. For more information about that protection, see Monitor pooled capacity.

Choose an inactivity period

You can set Days before deletion from 5 through 365 days. The default is 90 days.

Choose a value that reflects how often users connect. Consider users who are:

  • On rotating schedules.
  • Seasonal or occasional workers.
  • On extended leave.
  • Assigned to a Cloud App that they use infrequently.

A short inactivity period can delete storage that a user still needs.

Enable automatic cleanup

Warning

Cleanup permanently deletes Windows settings, application settings, application data, files, and the restore point for eligible user storage. Before you enable cleanup on a policy with production users, make sure that the inactivity period matches how those users work.

To enable automatic cleanup:

  1. Sign in to the Microsoft Intune admin center.
  2. Select Devices.
  3. Under Manage Windows 365 Cloud PCs, select Provision Cloud PCs.
  4. Select Provisioning policies.
  5. Select a policy that has User Experience Sync enabled.
  6. Select User storage > Settings.
  7. Under Maintenance, turn on Enable user storage maintenance.
  8. Set Days before deletion from 5 through 365 days.
  9. To run cleanup only when the policy exceeds its pooled limit, turn on Only cleanup when over quota.
  10. Select Save.

Cleanup uses the latest Last attached value during its next daily evaluation. It doesn't delete storage immediately when you save the settings.

Change or disable automatic cleanup

To change the inactivity period or cleanup mode, return to User storage > Settings, update the Maintenance settings, and select Save.

To stop automatic cleanup, turn off Enable user storage maintenance, and then select Save. Disabling maintenance doesn't restore storage or restore points that cleanup already deleted.

User experience after cleanup

The next time a user whose storage was deleted signs in, Windows 365 creates new user storage. The user receives a first-sign-in experience and doesn't have the settings, application data, files, or restore point from the deleted storage.

If content must be retained, export the restore point to Azure Storage (preview) before the storage becomes eligible for cleanup. If no restore point exists, create one (preview), wait for it to finish, and then export it.

Next steps