ENH add a friendly warnings before deleting the file