Returns an error when the resource to be deleted does not exist.