Added delete parameter to sync