We are adding contact through programming and it is added on Experience Profile after sometime.
How to avoid adding the same contact in Experience profile?
Code used for adding contact:
using (var client = this.CreateClient())
{
var source = "sitecore";
var id = email;
Tracker.Current.Session.IdentifyAs(source, id);
var trackerIdentifier = new IdentifiedContactReference(source, id);
var expandOptions = new ContactExpandOptions(CollectionModel.FacetKeys.PersonalInformation, CollectionModel.FacetKeys.EmailAddressList);
var contact = client.Get(trackerIdentifier, expandOptions);
SetEmail(email, contact, client);
client.Submit();
var manager = Factory.CreateObject("tracking/contactManager", true) as Sitecore.Analytics.Tracking.ContactManager;
manager.RemoveFromSession(Tracker.Current.Contact.ContactId);
Tracker.Current.Session.Contact = manager.LoadContact(Tracker.Current.Contact.ContactId);
}