acutally removing the ipv6 packages might be bit more tricky. I'd assume that just removing ipv6 in the networking config build might do it? However without acutally setting up a build and double checking I cannot say.
I'd personally would just disable ipv6 rather than remove all functionality. (unless you are also trying to reduce the image size to make it fit)