remove relations for an object when destroyed