How can i make a blueprint that removes a blueprint class (item) from a socket. Im working with flipbook and sprite sockets

I made it so that when i press a button an item appears in the socket of the (attackflipbook), but i want the item gone when i release the button. if someone could explain or guide me with an example it would be nice :slight_smile: