def delete(self, resource_id, params=None):
        """
        Delete resource record.

        Required Arguments:

            resource_id
                The resource id

        Optional Arguments:

            params
                Some resource might allow additional parameters.  For example,
                the user resource has a 'rdikwid' (really delete I know what
                I'm doing) option which causes a user to *really* be deleted
                (normally deletion only sets the status to 'Deleted').

        """
        if params is None:
            params = {} # pragma: no cover
        path = '/%s/%s' % (self.path, resource_id)
        try:
            response = self.api.make_request('DELETE', path, params)
        except exc.dRestRequestError as e:
            msg = "%s (resource: %s, id: %s)" % (e.msg, self.name,
                                                 resource_id)
            raise exc.dRestRequestError(msg, e.response)

        return response
dataset/ETHPy150Open datafolklabs/drest/drest/resource.py/RESTResourceHandler.delete/original