Is there any way to remove static mesh component?

So basically I’ve got a blueprint that spawns an object (using a static mesh component) on a Boolean condition, I’d like to either remove the mesh or reset the blueprint to the beginning where the mesh hasn’t yet spawned. Is anything like this possible?