Thanks for the response David.
We have a situation where we have a large collection of assets © which are now redundant within Squiz Matrix, along with two collections of assets (A and B) left over from development work which weren’t tidied up.
Each collection has a parent asset (A & B are asset listings, C is a folder), and child assets of A have links through to assets in B, and child assets of B have links through to assets in C.
While C assets have mostly a small number of links back to B assets, most B assets have links back to the majority of A assets. All this creates a significant number of webpaths on the B and C assets.
We also have A2 and B2 collections of assets, which have a similar link structure, with the B2 assets having links through to assets in C. We want to keep both A2 and B2.
Through a review with Chris Grist, we’ve identified that we want to reduce the number of weblinks and assets on our system and have taken actions that have seen the C assets made redundant.
We want to ideally delete the parent assets and all assets underneath, along with the removal of any links back to other parents.
In looking to delete them we’ve talked with Squiz NZ who unfortunately didn’t have any experience with the script, looking for a solution that’s smarter than trying to do manual deletes. There are ~5744 assets in the C collection. In my experience with move to trash, the HIPO job would timeout only partially completed.
Apologies for the length of the above explanation. If there’s any solutions that you’re aware of we could use that would be appreciated. At this point I’m considering an asset listing to identify all relevant IDs which we’ll then feed to delete_assets_by_id either in a hideous monolithic command list or a script to loop through them all.