Having several objects with "TEMP_" for example, tenant TEMP_tenant_A, vrf TEMP_vrf_A, TEMP_LIP_A etc.
was looking for a quick way to delete those objects. Postman is an option, but since the "TEMP_" objects are scattered all over the place, it's difficult to create and manage a collection.
The other option I came across is to via /mit/uni/infra. I attempted to delete a file or folder containing "TEMP_" but was unsuccessful using CLI or SCP. missed the opportunity to take a backup, so restoring is not an option for now.
for i in `find *TEMP_*`
do
echo "removing $i"
modelete $i
done
moconfig commit
sudo find -type d -name *TEMP_*| xargs sudo rm -rf
search and delete in winsCP