added ask befor deleting function.