Don't know another way to do it ... I had created containers from the Splunk export app for SOAR ( don't us that for Mission Control (MC) it got stuck in some kind of loop or something... so gross but whatever export token='YOURAUTOMATIONTOKEN'
while true
do
curl -s -u ":${token}" 'https://YOURCOMPANY.soar.splunkcloud.com/rest/container?search_fields=id&_filter_artifact_count__lte=0&page_size=2200' | python3 -m json.tool | grep -E "(\bid\b)" | sed 's/.*: //g' | tr -d '\n' | sed -re 's/^/{\"ids\":\[/g' -re 's/,$/]}/g' > ids.txt
curl -s -X DELETE -u ":${token}" 'https://YOURCOMPANY.soar.splunkcloud.com/rest/container' -d "`cat ids.txt`"
done
... View more