extract batchDelete(), better comments