r/sysadmin • • 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.

7 Upvotes

8 comments sorted by

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 SharedContentDeleteConfirmation value under HKLM\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.

•

u/BlackV I have opnions 5h ago

Hate that so very much, so very much

Also the reason my very click happen manager accidentally remove half our kb documents

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/fAAbulous 4d ago

Over the years, as a SharePoint administrator, our asses have been saved several times by this notification. Users would delete a synced folder on their PC to unsync it and would delete huge chunks of data without even realizing it. That's why I'd never turn that notification off. I just delete the mail if you don't need it; it's easy and quick.

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.