Dropbox syncs files, so if you have your Dropbox account linked to any computers and even share folders, then whatever you do with the files, it syncs those changes across all linked devices and shared folders.
So, if I understood correctly, you deleted some files on one of your devices, and then you found that they are deleted on the other device, that's the way Dropbox works. If you don't want it deleted from other linked devices or shared folder, then you either have to put the files outside of Dropbox folder or unlink you account with the device or unshare the shared folder
I hope I made myself clear and understandable
if this works and it was a solution, please click onAccept as Solution. Also clicking onLikeswould be super. Thanks!