Added an alert when deleting the file