How can I replace a SceneComponent with another and keep the same name

Here is what I’m trying to achieve:

Parent
   Component < Replace with another Component (subclass of USceneComponent)
      Child1
      Child2

What is the correct way to destroy the old component, and create a new one with the same name?

So far, I’ve tried:

  • Creating the custom component, setting it up then destroy the old one.
  • Renaming the old component, creating the custom one, setting it up then destroy the old one.
  • Destroying the old component, create the new one, and setting it up.
  • Renaming the old component, destroying it, creating the new component and setting it up.

All of the above crashed (fatal log: “Objects have the same fully qualified name but different paths” (UObjectGlobals.cpp, line 3401)).

To me, it looks like destroying the component does not free up its name. If so, how can I free the name up?