Pour out the beer. Make this your day one. Don't drink no matter what. Don't drink one minute/hour/day at a time. It can be done. A doctor can help you get thru the withdrawal. But if you drink to stop the withdrawal, you'll just have to go thru it all over again.
I hope our support and suggestions can help you get sober for good.