migration: introduce a delete_snapshot wrapper