SevenShores\Hubspot\Resources\Workflows::delete PHP Method

delete() public method

Delete a workflow.
public delete ( integer $id ) : Response
$id integer
return SevenShores\Hubspot\Http\Response
    function delete($id)
    {
        $endpoint = "https://api.hubapi.com/automation/v2/workflows/{$id}";
        $queryString = build_query_string(['updatedAt' => time()]);
        return $this->client->request('delete', $endpoint, [], $queryString);
    }