Wrap delete operations for subnet in a transaction

Fixes #5