Update object-delete to new api style.