Implement and export deleterows! with sane semantics

Fixes #595