Functionality to remove also the set details when removing a detail type