Adding check-and-delete support.

...following the template of check-and-put.