Answers.Body: <p>You can use civicrm "Smart Group" option for that purpose. Like this:</p>
  
  <p>Go to Contact Advanced search, set the relationship type you want as a filter and other filters if you want, like contact type, etc.</p>
  
  <p>After search is complete, select the <code>All X records</code> radio option in "Select Records" field. Then you in <code>Actions</code> dropdown menu <code>Create Smart Group</code>. Smartgroup automatically updates its contacts list based on the criteria you had set.</p>
  
  <p>Hope this helps.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-06-15T17:01:08.400Z
Answers.Text: Make sure that 'Relationship Status' is 'Active' in Advanced Search
Answers.UserDisplayName: Aidan
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-06-15T16:58:07.093Z
Answers.LastActivityDate: 2018-06-15T16:58:07.093Z
Answers.UserDisplayName: Hassan Farooq
Answers.Body: <p>If smart groups don't do what you need then you could also remove them from a static group with <a href="https://civicrm.org/extensions/civirules" rel="nofollow noreferrer">CiviRules</a></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-06-15T17:02:56.980Z
Answers.LastActivityDate: 2018-06-15T17:02:56.980Z
Answers.UserDisplayName: Aidan
Body: <p>If end date is added to relationship,the contact should be automatically removed from the specific group.
  How this can be accomplished?Any suggestions?</p>
  
Tags: <groups><relationships><hooks>
Title: How to automatically remove a contact from specific group, if end date is added to specific relationship
ThreadText: # How to automatically remove a contact from specific group, if end date is added to specific relationship
  
  (Asked by: username_0 on 2018-06-15)
  
  If end date is added to relationship,the contact should be automatically removed from the specific group.
  How this can be accomplished?Any suggestions?
  
  **Tags:** groups, relationships, hooks
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2018-06-15. Score: 3
  
  You can use civicrm "Smart Group" option for that purpose. Like this:
  
  Go to Contact Advanced search, set the relationship type you want as a filter and other filters if you want, like contact type, etc.
  
  After search is complete, select the `All X records` radio option in "Select Records" field. Then you in `Actions` dropdown menu `Create Smart Group`. Smartgroup automatically updates its contacts list based on the criteria you had set.
  
  Hope this helps.
  
  > **Comments:**
  > **username_2**: Make sure that 'Relationship Status' is 'Active' in Advanced Search  
  
  ---
  
  ### Answer by username_2 on 2018-06-15. Score: 2
  
  If smart groups don't do what you need then you could also remove them from a static group with [CiviRules](https://civicrm.org/extensions/civirules)
  
  
  ---
  
  