Answers.Body: <p>First delete all test contributions following <a href="https://civicrm.stackexchange.com/a/5002/4">Nicholai's answer</a>.</p>
  
  <p>Then do an "Advanced Search" and type "Sample Data" into the "Contact Source" field. You can then select all results (should be exactly 200 of them) and bulk-delete them.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-08-27T20:24:36.597Z
Answers.Text: Can you delete the contacts without first deleting contributions? I thought it would throw that error about having "financial transactions" and abort the process.
Answers.UserDisplayName: Nicholai
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-08-27T20:33:57.667Z
Answers.Text: Yes, I've modified both our answers now, and yours is the more complete.
Answers.UserDisplayName: Coleman
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-08-27T18:14:35.433Z
Answers.LastActivityDate: 2015-08-27T20:32:33.280Z
Answers.LastEditDate: 2017-04-13T12:53:13.167Z
Answers.UserDisplayName: Coleman
Answers.Body: <p>The quickest way is to:</p>
  
  <ul>
  <li>Run a contribution search with no criteria. You will have a result page with all of them.</li>
  <li>For the <em>Select Records</em> option, choose <strong>All Records</strong>.</li>
  <li>For the <em>Actions</em> option, choose <strong>Delete Contributions</strong>.</li>
  <li>Repeat for contacts with Advanced Search; type "Sample Data" into the "Contact Source" field to find all sample contacts and then bulk delete them. This will cascade down to delete events, activities, etc. You'll also get a message that your own record can't be deleted, so there's no concern about wiping yourself out of the system.</li>
  </ul>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-08-22T12:35:29.450Z
Answers.Text: I got this warning too "The following contacts had been sharing addresses with a contact you just deleted. Their addressses will no longer be shared, but have not been removed or altered."
Answers.UserDisplayName: Matthew Lock
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-08-27T17:26:54.990Z
Answers.LastActivityDate: 2015-08-27T20:33:35.943Z
Answers.LastEditDate: 2015-08-27T20:33:35.943Z
Answers.UserDisplayName: Nicholai
Body: <p>When I accepted sample data on install I did not realize there would be 200 contacts added with no clear way to get rid of them. How do I delete these contacts?</p>
  
Tags: <contacts>
Title: How to delete sample data?
ThreadText: # How to delete sample data?
  
  (Asked by: username_0 on 2015-08-27)
  
  When I accepted sample data on install I did not realize there would be 200 contacts added with no clear way to get rid of them. How do I delete these contacts?
  
  **Tags:** contacts
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_2 on 2015-08-27. Score: 12 | Accepted answer
  
  The quickest way is to:
  
  * Run a contribution search with no criteria. You will have a result page with all of them.
  * For the *Select Records* option, choose **All Records**.
  * For the *Actions* option, choose **Delete Contributions**.
  * Repeat for contacts with Advanced Search; type "Sample Data" into the "Contact Source" field to find all sample contacts and then bulk delete them. This will cascade down to delete events, activities, etc. You'll also get a message that your own record can't be deleted, so there's no concern about wiping yourself out of the system.
  
  > **Comments:**
  > **username_3**: I got this warning too "The following contacts had been sharing addresses with a contact you just deleted. Their addressses will no longer be shared, but have not been removed or altered."  
  
  ---
  
  ### Answer by username_1 on 2015-08-27. Score: 3
  
  First delete all test contributions following [username_2's answer](https://civicrm.stackexchange.com/a/5002/4).
  
  Then do an "Advanced Search" and type "Sample Data" into the "Contact Source" field. You can then select all results (should be exactly 200 of them) and bulk-delete them.
  
  > **Comments:**
  > **username_2**: Can you delete the contacts without first deleting contributions? I thought it would throw that error about having "financial transactions" and abort the process.  
  > **username_1**: Yes, I've modified both our answers now, and yours is the more complete.  
  
  ---
  
  