Share via

OneDrive Pop-ups About File Deletion After Migration to File-Based Profiles - Citrix Cloud

drClays 171 Reputation points
2026-02-27T11:10:03.7933333+00:00

Hi,

Has anyone integrated Citrix Cloud VDI with Azure-hosted servers and Azure file-based user profiles?

After migrating from container user profiles to file-based profiles stored on a VM-based file server in Azure, users on one server - where OneDrive is shared - started receiving OneDrive pop-ups asking to delete all files, including content shared from SharePoint. In one case, a user deleted an entire SharePoint library, which we had to restore from backup.

Has anyone experienced a similar issue with OneDrive in a Citrix Cloud + Azure file profile environment? If so, do you have any recommendations on how to prevent this behavior?

Thanks in advance for any advice.

Microsoft 365 and Office | OneDrive | For business | Windows
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Q&A Assist
    2026-02-27T11:10:18.57+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    The behavior is consistent with OneDrive treating the new file-based profile as a fresh device/profile and synchronizing deletions back to SharePoint/OneDrive when users remove files from their synced folders. In a multi-user VDI environment, this can easily lead to accidental deletion of entire libraries if users think they are only cleaning up “local” data.

    To reduce the risk of this happening again, consider the following controls and mitigations from the OneDrive policy set:

    1. Require confirmation before deleting shared content
      • Enable the OneDrive policy that prompts users to confirm when they delete shared content. This forces a warning dialog whenever a user deletes locally synced content that other users can access.
      • Policy/registry setting:
        • HKLM\SOFTWARE\Policies\Microsoft\OneDrive "SharedContentDeleteConfirmation"=dword:1
      • With this enabled, each delete of shared content requires explicit confirmation before the deletion is synced to SharePoint/OneDrive.
    2. Control external/B2B sync if applicable
      • If users are syncing libraries or folders shared from other organizations (B2B), consider blocking this in the VDI environment so that only internal content is synced and exposed to accidental deletion.
      • Policy/registry settings:
        • Prevent B2B Sync:
          • HKLM\SOFTWARE\Policies\Microsoft\OneDrive "BlockExternalSync"=dword:1
        • Restore B2B Sync:
          • HKLM\SOFTWARE\Policies\Microsoft\OneDrive "BlockExternalSync"=dword:0
    3. Use OneDrive policies to standardize sync behavior on VDI
      • Apply OneDrive Group Policy/Intune settings specifically for the Citrix/Azure VMs so that:
        • Only required libraries are synced.
        • Known Folder Move and Files On-Demand are configured in a way that minimizes large-scale deletions from the VDI session.
      • See the OneDrive policy guidance for controlling sync behavior and Files On-Demand: Use OneDrive policies to control sync settings and Use OneDrive Files On-Demand.
    4. Educate users about synced folders vs. local folders
      • Make clear that deleting files from a OneDrive/SharePoint-synced folder in the VDI session deletes them in the cloud as well, and that this is not just “local cleanup.”
      • Combine this with the delete-confirmation policy so that users see and understand the impact.
    5. Recovery and monitoring
      • If a library is deleted again, use SharePoint/OneDrive recycle bin and versioning to restore content. The recycle bin tracks who deleted the content via the Deleted By field, which helps identify the user/session responsible.
      • When files are deleted locally in a synced folder, the delete operation is synchronized to SharePoint/OneDrive and the items move to the recycle bin, where they can be restored if caught in time.

    These measures do not change the fundamental sync behavior (local deletes propagate to SharePoint/OneDrive), but they significantly reduce the chance of silent, large-scale deletions from a shared VDI environment and give administrators better control and auditability.


    References:

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.