Edit /etc/sysctl.conf
Paste to the end:
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1
Run sysctl -p
After that if you check,
$ cat /proc/sys/net/ipv6/conf/all/disable_ipv6
You will get result as,
1
If you get result as 1, ipv6 disabled successfully.