Make delete use dynamic row indexes.

Fixes #59.