I'm trying to write a cleaning script that will go through an app and delete any items that are not referenced from other apps.
I can see the information under
->refs in the
PodioItem::get method and in the
PodioItem::get_references method, but I can't see any information about it in
PodioItem::filter, and I can't filter based on whether items are referenced.
Is there a better way to run this than to grab 500 items with
get each item from its ID, check if it has references, delete it if it doesn't,
get the next item, repeat, then grab the next 500 items and start again?
Please sign in to leave a comment.