no need to delete if we open file in write mode