In this article, let's look at
- Deleting table data in batches/chunks
- Logging each iteration
- Handling and logging errors
- Creating a recurring event to cleanup/purge table data regularly
Recently, I was working on creating a utility to purge the table data of MySQL Database. In this post, I will be sharing my experience of how we can create a recurring event in MySQL to purge/remove the table data.