Remove software

After installing application, you can use “pkg delete“ command to remove it:

  1. # pkg delete lsof
  2. Checking integrity... done (0 conflicting)
  3. Deinstallation has been requested for the following 1 packages (of 0 packages in the universe):
  4. Installed packages to be REMOVED:
  5. lsof-4.90.b,8
  6. Proceed with deinstalling packages? [y/N]: y
  7. [1/1] Deinstalling lsof-4.90.b,8...
  8. [1/1] Deleting files for lsof-4.90.b,8: 100%

You can also enter the port directory, and execute “make deinstall“ instruction:

  1. # pwd
  2. /usr/ports/sysutils/lsof
  3. # make deinstall
  4. ===> Deinstalling for lsof
  5. ===> Deinstalling lsof-4.90.b,8
  6. Updating database digests format: 100%
  7. Checking integrity... done (0 conflicting)
  8. Deinstallation has been requested for the following 1 packages (of 0 packages in the universe):
  9. Installed packages to be REMOVED:
  10. lsof-4.90.b,8
  11. [1/1] Deinstalling lsof-4.90.b,8...
  12. [1/1] Deleting files for lsof-4.90.b,8: 100%

Reference:
Using the Ports Collection.