Delete all items from MongoDB that are older than 24 hours

I have a MongoDB in the form:

{Key : "XXXX-YYYY-ZZZZ-1234", timestamp : 1613776160493}

I have a Python code to query the database every 10 minutes and I want to delete all items older than 24 hours, how would this be done?