Minor Improvement

1/ Added a prompt when deleting
2/ Another revision of the code