" /> Deleting Contacts from UCS DB - Genesys CTI User Forum

Author Topic: Deleting Contacts from UCS DB  (Read 4081 times)

Offline AndyB

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
Deleting Contacts from UCS DB
« on: April 10, 2008, 11:32:15 AM »
Advertisement
I am planning to delete a large number of contacts directly from the UCS database.  Does anyone have experience or tips in doing this?  From what I can see of the DB structure I would need to identify the record to be deleted in the “contact” table and then delete all corresponding records from the “ContactAttribute” table (where “ContactId” matches).

Do you know if it is ok to delete from UCS DB directly (delete from “contact” and “ContactAttribute” tables only) which would leave some interactions referencing an invalid contact ID; or do I need a more sophisticated delete routine that would identify the contact to be deleted and first delete all related interactions before deleting the record from the contact tables?

Offline René

  • Administrator
  • Hero Member
  • *****
  • Posts: 1832
  • Karma: 62
Re: Deleting Contacts from UCS DB
« Reply #1 on: April 10, 2008, 06:21:35 PM »
Hi Andy,

I would recommend you to delete even the interactions related to the contacts you're going to remove. I'm not 100 % sure about that but these "orphaned" interactions remains in the database forever - archiving/purging process will ignore these.

Don't forget the tables "Document" and "Attachment" when deleting the interactions as these are used to store attachments and bodies of email interactions.

René

Offline AndyB

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
Re: Deleting Contacts from UCS DB
« Reply #2 on: April 11, 2008, 10:13:00 AM »
Hi René,
Thanks for you advice.  I also thought about deleting a contact using GAD and capturing the DB interaction on SQL to understand exactly what is happening within the UCS DB.  Either way I will update this post with the outcome.

Andy

tovare

  • Guest
Re: Deleting Contacts from UCS DB
« Reply #3 on: May 02, 2008, 03:59:32 PM »

I'm in a similart situation, but in my case I cannot delete the contact from GAD because the history is freaking huge.

To me It appears that the SQL will need to encompass

  Contact
  ContactAttributes
  ContactAttributesData
  Document
  EmailIn
  EmailOut
  FieldCode
  FieldValue
  interaction

.... and maybe more. It's strange that there isn't any administration tools that we can use.