Answers.Body: <p>The answer is in the civicrm_uf_match table in your Civicrm database.  Each Drupal user is connected to its corresponding Civi contact record there.</p>
  
  <ul>
  <li>The uf_id column is the Drupal user ID.</li>
  <li>The uf_name column is the email address associated with the Drupal user and Civi contact record.</li>
  <li>The contact_id column is the Civi contact record ID.</li>
  </ul>
  
  <p>I don't know the ramifications of deleting the row which contains Drupal user 1, but you could certainly create a new Civi contact record (not yourself), and put that new contact ID in the row with uf_id 1 (replacing whatever value is in the contact_id column currently).  Once that is done, you could delete your test contact record safely.</p>
  
  <p>Our Drupal user 1 is associated with a contact record named [myorg] Tech and the email address is tech@[myorg].org.  Thus our default address for mailings come from that address with no problems.</p>
  
  <p>Hope that helps!</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-07-12T05:08:33.857Z
Answers.LastActivityDate: 2015-07-12T17:50:37.943Z
Answers.LastEditDate: 2015-07-12T17:50:37.943Z
Answers.UserDisplayName: Allen Hutchison
Body: <p>I created a contact record for some testing using the site admin email address which is associated to the corresponding Drupal user account (user 1).</p>
  
  <p>However it's now causing some problems with certain emails that go out, so I want to delete the contact record but I get an error message that I can't delete myself.</p>
  
  <p>Can I / how do I break the connection between the two so I can safely delete the contact record?</p>
  
Tags: <drupal><contacts>
Title: How to disconnect civi contact record from Drupal user
ThreadText: # How to disconnect civi contact record from Drupal user
  
  (Asked by: username_0 on 2015-07-12)
  
  I created a contact record for some testing using the site admin email address which is associated to the corresponding Drupal user account (user 1).
  
  However it's now causing some problems with certain emails that go out, so I want to delete the contact record but I get an error message that I can't delete myself.
  
  Can I / how do I break the connection between the two so I can safely delete the contact record?
  
  **Tags:** drupal, contacts
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2015-07-12. Score: 4 | Accepted answer
  
  The answer is in the civicrm\_uf\_match table in your Civicrm database. Each Drupal user is connected to its corresponding Civi contact record there.
  
  * The uf\_id column is the Drupal user ID.
  * The uf\_name column is the email address associated with the Drupal user and Civi contact record.
  * The contact\_id column is the Civi contact record ID.
  
  I don't know the ramifications of deleting the row which contains Drupal user 1, but you could certainly create a new Civi contact record (not yourself), and put that new contact ID in the row with uf\_id 1 (replacing whatever value is in the contact\_id column currently). Once that is done, you could delete your test contact record safely.
  
  Our Drupal user 1 is associated with a contact record named [myorg] Tech and the email address is tech@[myorg].org. Thus our default address for mailings come from that address with no problems.
  
  Hope that helps!
  
  
  ---
  
  