In the axial Ward identity of lattice QED we show that in the limit of infi
nite fermion mass m the pseudoscalar density term exactly cancels the Adler
-Bell-Jackiw (ABJ) anomaly. Using this result we calculate the U(1) axial a
nomaly in a non-abelian gauge theory.