Client desktop deny deletes

I sometimes and inadventertly delete some files from my local synced copy of my nextcloud account. When I delete a file from synced copy it is istantly removed also from cloud account , losting him.
There is some workaround to set the client desktop to update or create new files, but avoid to delete a file or ask for delete him ?