Can someone help me cut / paste from different dbs and views please?

I just can’t wrap my head around this. We’re trying to re-force sync’ing our local address book with ($Contacts) in the mail box. I know there is a preference for this in the NAB but I want to verify the mailbox is clean first (to avoid dups). Could any please help me with some code to try to accomplish the following?

  1. Within the mail file ($Contacts) view, delete everything.

  2. Turn on the preference to sync local contacts via the replicator.

  3. Within the local NAB, cut & paste all docs (so they are new again). (I’m not 100% sure this step is required but our manual testing works like a champ with this method).

  4. Force replication (this step I can do manually if needed).

Thank you so much in advance!