Help with removing one tool

Hello I need help, I need a script that will subtract one tool. Lets say I have two items with the same name, how would I remove one of them? Help

I fixed it myself :D. (dsfdsfdsfdsfdsfsdfds)