'Delete a provisioning resource.
:param array: the array serial number
:param category: the resource category e.g. sloprovisioning
:param resource_type: the type of resource to be deleted
:param resource_name: the name of the resource to be deleted
:param payload: the payload, optional
:param private: empty string or \'/private\' if private url
:param params: dict of optional query params'

def delete_resource(self, array, category, resource_type, resource_name, payload=None, private='', params=None):

    target_uri = self._build_uri(array, category, resource_type, resource_name, private)
    (status_code, message) = self.request(target_uri, DELETE, request_object=payload, params=params)
    operation = ('delete    %(res)s    resource' % {'res': resource_type})
    self.check_status_code_success(operation, status_code, message)
