curl -u admin:admin -X POST http://localhost:4505/crx/packmgr/service/.json/etc/packages/export/name of package?cmd=uninstall not working ??? Try to uninstall the package
Glad that it got resolved for you. Please let us know if there are any issues in the future.
Thanks for reaching out to Adobe Community.
You may want to go through the below link to see how to use the CURL command to delete packages: