How to delete MacPorts user after using the Migration Assistant
$  dscl . list /Users | grep -v '^_'
daemon
Guest
macports &lt;--------------------------------------------- remove?
mixelpix
nobody
root

$  /usr/bin/dscl . -search /Users name macports
macports        dsAttrTypeNative:name = (
    macports &lt;----------------------------------------- confirm...
)

$  sudo /usr/bin/dscl . -delete "/Users/macports" &lt;---- DELETE
Password:

$  dscl . list /Users | grep -v '^_' &lt;----------------- GONE!
daemon
Guest
mixelpix
nobody
root


Also useful: sudo ls /var/db/dslocal/nodes/Default/users

Similarly, to delete the group "macports" use:

sudo /usr/bin/dscl . -delete "/Groups/macports"