Is there a TTL for MySQL as there is in MongoDB?

In MongoDB there is expireAfterSeconds index which deletes the object automatically after a certain amount of time. I was wondering if there is such a thing in MySQL? MongoDB docs about expiring data