How to remove a spawned actor?

Hello.After it spawns the actor(weapon) in the AI hands when I kill the AI the weapon remains in game.(visible).
Thanks!

Since you “spawned” your Weapon as an actor inside your main actor, you have to destroy them manually before destroying your main actor. What you want is “Add Child Actor Component” which will take care of the clean up process of that child actor once the main actor started getting destroyed. You set the Actor class in the “Details” panel of “Add Child Actor Component”.

Below is an example: