Synchronization keeps versions of files aligned across devices. Depending on the service, deleting or corrupting a file can propagate the change to other devices. This is different from retaining an independent historical copy.
Check whether your service offers version history and how long it keeps deleted items. Maintain a separate backup for important files if those protections do not meet your needs.