Many, many people aren't successful on their first try or even more tries. There's no shame in trying and falling back unless you just stay there and you don't make a new commitment to quit once you've gathered yourself together again.
The key is NOT to give up trying and you must learn from your mistakes and think about how you will make better decisions next time you find yourself in a simlar situation. When you're a smoker you're addicted to nicotine so yes ... throw away all smoking material so they're not within easy reach. Understand that what quitting smoking actually involves is breaking that link in your mind between smoking & all you're daily situations. That takes quite awhile and a lot of repetition before you are mentally over relying on smokes time and time again each & every day.
Firstly you need to make that unbreakable commitment to yourself to quit. Then take things just one day at a time as you fight those cravings to smoke. Trust me, that intense craving for a smoke lessens over time. Staying smoke free each & every day MUST be absolute top of mind in order not to cave in to the cravings.
Quitting is a marathon, not a sprint. Treat it that way and be patient, one day at a time!