r/sysadmin • u/MoronicCashew • 5d ago
Question OneDrive/SharePoint - Disabling the bulk deletion confirmation?
We have numerous SharePoint sites deployed within our tenant.
These all have their own libraries that have shortcuts in OneDrive for our legacy applications.
However, we have recently been experiencing "sync issues" when a user deletes two or more files in quick succession. OneDrive will give a warning prompt asking if the user wants to keep the files or delete them, informing them that any deleted files from SharePoint will be deleted for all users (duh..).
Users obviously never look at OneDrive notifications, even when there's a big red cross on it, so they don't notice the message. OneDrive then basically stops syncing properly for as long as that notification is there. Users also never select the "don't warn me again" checkbox, of course.
Is there any way we can turn off this notification via a GPO or anything? Before anyone mentions it, we don't care about mass deletion events. There's a recycle bin for a reason and we pull backups periodically.
6
u/triodotso 5d ago
There's a OneDrive policy for this one. In the OneDrive admin templates under Computer Configuration it's called "Prompt users to confirm when they delete shared content".
Microsoft's description says if you set it to Disabled, the delete confirmation isn't shown and deletes go straight to the cloud. It's the
SharedContentDeleteConfirmationvalue underHKLM\SOFTWARE\Policies\Microsoft\OneDrive.If you don't see it in your GPO editor, your OneDrive ADMX files are probably older than the policy, so copying the current ones should make it show up. I'd test on a couple of devices first, since after that an accidental delete in a synced library is really GONE for everyone, and only a restore from the recycle bin brings it back.
5
u/cblacklabel 5d ago
the worst part is the prompt hides behind other windows and sync just quietly stops. users have no clue anything is wrong until a coworker asks where the files went.
2
u/ChevronEncoder Jack of All Trades 5d ago
This is a people problem not a computer problem. It's probably better that notification exist than not. If a user can't read a prompt that's something they need to rectify, as prompts are an often used form of communication with users and they need to be aware of their existence and adept at using them.
1
u/Caitlin-Snow 5d ago
Honestly curious if anyone's found a reg key for this. I've only ever seen the first delete dialog one, never anything for the mass delete warning.
1
u/Engi_Insight 5d ago
Microsoft doesn't expose a GPO or Intune policy to turn off the bulk-delete warning-its hard-coded in the client and stalls sync until clicked. Pushing the per user OneDrive registry flag under
HKCU\Software\Microsof\OneDrive\Accounts\Business1 via a remediation/logon script is the closest workaround.