Destroy Actor on Key Pressed

Hello, I am trying to make an inventory system and so far it is going fairly well. Although, I am having some trouble make a collectible item. I already have everything else set up, I’m just wondering if there is any way I can destroy an actor when the player presses a key or controller button. Thanks in advance.

I’ve tried using DestroyActor by following almost all the tutorials I could find but it doesn’t work for some odd reason.

What about calling Actors Destroy Method on an input event. If you already know which actor to destroy you can call its DestroyActor node on a keypress. Try bellow node to capture a key event on UMG

301243-listenforinputaction.png

I finally found the answer! I was able to use a node that enabled input for the actor component, linked that to an input event and then destroyed the actor when that event was triggered.