The opposite of attaching actor to component

It’s Detach From Actor. It only takes an actor reference. And it will detach an actor from any scene component it’s attached to.

And, as above, you must keep a reference. Querying components for attached actors is a no-no in BPs (afair).