Cleanup MacPorts

remove the source:

port clean --all installed

remove inactive packages:

port -f uninstall inactive

For more information you can look into the MacPorts Guide.