Script or Job to delete child table records

Hello,

Any ideas on a script where I can delete records from a child table?
I am storing approved visitors on a child table and if a visitor is temporary will have a start and end date. After that end date I want to remove that record as the approved visitor lists are getting long as most data is from temporary visitors.

I am currently using the append to automatically add records there but not sure if there is a removal command somewhere.

I am using Frappe 14