If end date is added to relationship,the contact should be automatically removed from the specific group. How this can be accomplished?Any suggestions?
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.
If smart groups don't do what you need then you could also remove them from a static group with CiviRules