I found this example useful. Hope it helps.
@RNC No, that wouldn't work. The sync engine needs to be informed that the file was intentionally deleted (and that's not supported programmatically), otherwise, it would re-download a fresh copy...
Oops! Looks like something went wrong!
You may only upload PNG, JPG, or GIF files ()