Fix logic bug in _delete.

Signed-off-by: John McCutchan <john@johnmccutchan.com>