Deletion of just installed port-packages: a question [Trying to avoid being part of other somewhat-related discussions]

From: Mark Millard <marklmi_at_yahoo.com>
Date: Thu, 07 Aug 2025 03:42:04 UTC
[Limited to FreeBSD-pkgbse@ and FreeBSD-pkg@ .]

I have a type of script where I'd used the likes of, say:

chroot /FBSDFSSDroot-mnt/ pkg-static delete -a

(no -f) to clear out port-packages that had been installed
--before installing new ones with the likes of:

chroot /FBSDFSSDroot-mnt/ pkg-static install -f `cat ~/origins/amd64-pkgs.txt`

This predated my potentially having the chroot be based
on a pkgbase world installation.

Is there a known alternative to the command:

chroot /FBSDFSSDroot-mnt/ pkg-static delete -a

that would only delete port-packages, even if the
chroot's world was based on a pkgbase world
installation?

If yes, what would the command be like?

If no, could something be added to allow such a
command to be formed?

In the long run, I may not be the only one with
such a prior context and resulting general type
of question.

===
Mark Millard
marklmi at yahoo.com