add delete logic in /notes/sync