complete the function : delete the alarm