delete by checking