I have a Nested Collection (A collection of People that has a secondary collection of toys that the people own).
I am trying to make a delete command that will delete people that are no longer needed. I also would like to delete their toys from the toys collection that belonged to the people that are deleted.
I currently can delete the people, but have not found a way to also delete the toys from the One to Many collection.
Anyone have a work for this?
Hi ThunderBlade
This topic has been explored extensively in this forum. Search for “Mass Delete”, you can get a working solution.
Best Regards
Jay
Hi @ThunderBlade,
For smaller number of records, Countdown component may help.
For larger number of records (say, >20-30-40), I’d say that using Collections API is the only reliable solution.
Some useful tutorials about timer I’ve made long time ago:
https://youtu.be/dpORKAPF-tE,
https://youtu.be/sDsTHeI8CiQ.
When deleting records in bulk, be careful with filters - with wrong filter setting you can accidentally delete wrong records.
As @eduscvs mentioned, this is a hot topic and it’s been discussed multiple times.
Best,
Victor.