Fix record deletion functionality.

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>