clear file of old data