How to write a python script to remove all file ending with .log in 10 different directories : Please provide a python script which can delete all .log files in 10 different directories which are older than 5 days.
Path structure is shown below.

Path1 is like (abc/bcd/def/xyz/fkd/.log)
path2 is like (abc/bcd/def/mnq/kjf/.log) and so on.

First three directories are same but it differs after that.