Photo management using NextCloud

I have my own home server with NextCloud. I have 2 laptops and 2 phones attached. I have a question about Photo management/ownership. I could spend lots of time testing but thought I would ask. If I sync photos from one phone to nextcloud and all my other devices also receive these photos via their own sync I am wondering who controls the photo? If I delete it from any device does it delete it from Nextcloud and all other devices or do I need to delete it from Nextcloud and then the deletion will proliferate to the other devices? How is this managed and controlled using Nextcloud and devices? On my Iphone/Mac/Icloud I get a message saying if I delete this photo it will remove it from all devices. On Ubuntu & Nextcloud how is that handled?>