Add support for deleting a reference.