'A ORM-specific implementation of ``obj_delete``.
Takes optional ``kwargs``, which are used to narrow the query to find
the instance.'

def obj_delete(self, bundle, **kwargs):

    if (not hasattr(bundle.obj, u'delete')):
        try:
            bundle.obj = self.obj_get(bundle=bundle, **kwargs)
        except ObjectDoesNotExist:
            raise NotFound(u'A    model    instance    matching    the    provided    arguments    could    not    be    found.')
    self.authorized_delete_detail(self.get_object_list(bundle.request), bundle)
    bundle.obj.delete()
