Delete Lists of a List

Hi All,

I am trying to make an app where users can make lists and then those lists have items.
I have two collections: List and Items. Lists have many items and items have only one list.

I want to have the option that the users delete a List, and then all Items related to that List are also deleted.

How do I make this? Is there a function that goes through a collection and delete all items related to an list in another collection?

Thanks for the help!!

Marta