How do I bulk delete imported SBOMs from the SBOM Hub?
Last updated: March 16, 2026
Context
When you have a large number of imported SBOMs in your SBOM Hub (hundreds or thousands), deleting them individually through the UI using the kebab menu on each row becomes impractical. You may want to clean up all existing imported SBOMs to start fresh or reorganize your SBOM management.
Answer
While the UI doesn't currently support bulk deletion of imported SBOMs, you can accomplish this using the API through the command line interface.
You'll need to have endorctl and
jqinstalled on your system to run these commands.Replace
[your-namespace]with your actual namespace name when running the commands below.
Step 1: First, check how many imported SBOMs you have on your account:
endorctl -n [your-namespace] api list -r Project --filter="spec.sbom exists" --countStep 2: To delete all imported SBOMs, use the following command:
⚠ This command will delete all imported SBOMs from your given namespace and its child namespaces. Make sure this is what you want to do before running the command, as this action cannot be undone.
endorctl -n [your-namespace] api list -r Project --filter="spec.sbom exists" --traverse=true --field-mask=uuid,tenant_meta.namespace --list-all | jq -r '.list.objects[] | "\(.uuid) \(.tenant_meta.namespace)"' | while read -r uuid namespace; do
echo "Deleting $uuid from $namespace"
endorctl -n $namespace api delete -r Project --uuid="$uuid"
done