handle null in where condition, async delete