Delete takes an object instead of an id