Prevent deleting files

Hello,
We want to permit users only create and share files but prevent deleting and changing them. We want to use it for all files not only shared ones. How can we do that?
Regards.