code for delete candidate