I’m not sure why you need to display the relationships and remove them. If they are in the trash they should be removed from the relationship field the next time the post is edited and these trashed posts should not be returned when getting the field or querying posts.