You don’t understand what Marxists mean by “state.” It is that which imposes the will of one class upon the other classes.
A capitalist state imposes the will of the bourgeoisie upon the proletariat.
A socialist state imposes the will of the proletariat upon the bourgeoisie.
Communism is classless, and therefore stateless.
In time, once the productive forces have become sufficiently advanced and the imperial threats are gone, the last of the bourgeoisie are proletarianized, at which point there are no classes, and therefore no state.