This function is called when whole branches doesn't exist in the foreign DART and need to be removed in the local DART
path to the selected rim
This function is called when whole branches doesn't exist in the foreign DART and need to be removed in the local DART