Answers.Body: <p>Since that activity type is sort of a system type and is marked Reserved to discourage editing it, I don't think there is currently a way. Since you must have disabled it in the database outside the UI you might be ok with a workaround involving some coding. You might be able to write a little extension to use hook_post to delete activities of those types after they get created: <a href="https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_post/" rel="nofollow noreferrer">https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_post/</a></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-09-28T21:41:39.533Z
Answers.LastActivityDate: 2019-09-28T21:41:39.533Z
Answers.UserDisplayName: Demerit
Body: <p>I've disabled certain activities that we do not want to keep track of (Record merged, for instance). Yet, when I merge a record, the activity is still automatically created. How can I prevent this from cluttering up our Activities tab in the future?</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-09-30T13:45:46.840Z
Comments.Text: By default all activity get fetched, this query need to modify to restrict only enabled activities : https://github.com/civicrm/civicrm-core/blob/master/CRM/Activity/BAO/Activity.php#L1642
  
  i did submitted one PR couple of year back, but solution was implemented at php level https://github.com/civicrm/civicrm-core/pull/9812/files
Comments.UserDisplayName: Sunil Pawar
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-10-01T16:40:12.743Z
Comments.Text: There's some disagreement and there's been some discussion about what "disabled" choices should really mean and whether they should or shouldn't show in search results. For example https://github.com/civicrm/civicrm-core/pull/14240#issuecomment-496797810 and https://lab.civicrm.org/dev/core/issues/19.
Comments.UserDisplayName: Demerit
Tags: <activities><automation>
Title: Disabled activity still auto-populates
ThreadText: # Disabled activity still auto-populates
  
  (Asked by: username_0 on 2019-09-28)
  
  I've disabled certain activities that we do not want to keep track of (Record merged, for instance). Yet, when I merge a record, the activity is still automatically created. How can I prevent this from cluttering up our Activities tab in the future?
  
  **Tags:** activities, automation
  
  > **Comments:**
  > **username_1**: By default all activity get fetched, this query need to modify to restrict only enabled activities : https://github.com/civicrm/civicrm-core/blob/master/CRM/Activity/BAO/Activity.php#L1642  i did submitted one PR couple of year back, but solution was implemented at php level https://github.com/civicrm/civicrm-core/pull/9812/files  
  > **username_2**: There's some disagreement and there's been some discussion about what "disabled" choices should really mean and whether they should or shouldn't show in search results. For example https://github.com/civicrm/civicrm-core/pull/14240#issuecomment-496797810 and https://lab.civicrm.org/dev/core/issues/19.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2019-09-28. Score: 1
  
  Since that activity type is sort of a system type and is marked Reserved to discourage editing it, I don't think there is currently a way. Since you must have disabled it in the database outside the UI you might be ok with a workaround involving some coding. You might be able to write a little extension to use hook\_post to delete activities of those types after they get created: <https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_post/>
  
  
  ---
  
  