bulk delete function complete