I have a `logging.conf` file, with the following content: 

```
[loggers]
keys=root

[logger_root]
level=INFO
handlers=file

[formatters]
keys=simple

[formatter_simple]
format=[%(levelname)s] %(asctime)s : %(name)s - %(message)s
datefmt=%H:%M:%s

[handlers]
keys=file

[handler_file]
class=handlers.TimedRotatingFileHandler
interval=midnight
backupCount=5
formatter=simple
level=INFO
args=(log_directory,)

```

I want to delete the older logs everytime I run the code, therefore I would like to set `mode` to `w` however I am not sure how to do it. 

```
[handler_file]
...
kwargs={'mode': 'w'}

```

doesn't seem to work (the logger is still appending logs instead of overwriting the existing log file).