Interaction with objects

I need to make it so that when the sphere is turned on for the actor, one spawned garbage object is removed.