The Dirac delta function yield zero unless it's argument is zero, in which case it yields 1 (this is an oversimplification, but it should do for the present discussion). In your case, the argument of the delta function is -2*\pi + \epsilon, so it should be zero. Did you mean to type, \phi=\pi + \epsilon? In that case, the argument of the delta function would be just \epsilon, and then you need to get a bit more specific about how you are defining the delta function. Have you looked at this thread?
https://www.physicsforums.com/showthread.php?t=73447