Delete Unwanted Packages and Package Versions
Use force:package:version:delete and force:package:delete Salesforce CLI commands to delete unreleased packages you no longer need. Deleted package or package versions can’t be recovered, or specified as a dependency, and any new installations of the package will fail. Released versions of second-generation managed packages can’t be deleted.
Where: This change applies to second-generation managed packages and unlocked packages.
Who: Users need the Create and Update Second-Generation Packages permission and Delete Second-Generation Packages permission.