def delete(*args)
      url, subdomain, path, _ = parse_args(*args)
      rewrap_errors do
        RestClient.delete(build_url(url || subdomain, path), headers)
      end
    end
def delete(*args)
      url, subdomain, path, _ = parse_args(*args)
      rewrap_errors do
        RestClient.delete(build_url(url || subdomain, path), headers)
      end
    end
args: either a full URL or subdomain, path