this is totally wrong and not the way of doing it. You need to create a ContactsRemover object that handles Contact Removal and manages the update process. See for instance 

https://github.com/mozilla-b2g/gaia/blob/master/apps/communications/contacts/js/utilities/import_sim_contacts.js