added code to delete the old properties file after saving the new json file