bulk: send multiple delete commands at once.

This is the same optimization done for bulk inserts.

Hopefully it looks good, much of it is only slightly modified from the insert code.