first delete from local.