You can pkg delete all php56* ports and then make install clean the php71 port. Also make sure you reinstall all other ports that you need, for example phpmyadmin, roundcube, ioncube, etc.