added a confirmation message to delete a file