Forum Discussion
Tustle
Mar 20, 2023Copper Contributor
Prevent deletion of folder larger than certain volume
Hello Sharepoint community,
we faced the issue that a user by mistake deleted an important folder with > 10TB of data.
Now we think about how we can prevent this in the future.
We know there's the possibility to remove the delete privilege from user groups. But that's not ideal since we want users to be able to delete single files (i.e. if they upload a wrong file by mistake).
We wonder wether there's an option to add something like a trigger (maybe via native Sharepoint development, maybe via Power Autotmate) upon deletion that first checks the amount of data that will be deleted. And based on that either performs or forbids the deletion.
Does anyone have any idea for this issue?
Regards,
Thorsten
1 Reply
Sort By
- kalpeshvaghelaSteel Contributor
You can create Remote Event Receiver with event "Item Deleting" there you do have possibility to cancel event based on your business logic. See below link:Hope it will helpful to you and if so then Please mark my response as Best Response & Like to help others in this community