Added logic to delete config file