mysql – How to change the expiration date of binlog files?

I have a server with Ubuntu 18.04 and MySQL 8.0.11

I have binlog files in / var / lib / mysql that make several GOs and my server will soon become saturated.

How to change the expiration date of binlog files?

I can not find the file to configure. Is it safe for the database to change the waiting time?