Create a file named auth.properties and add the following information
user=your_iitk_mail_username_without_@iitk.ac.in
password=your_mail_password
year=4_digit_representation_of_year
month=numeral_month
date=date_of_month
The above program will delete all the mails on or before the date provided in the inputs.