# OpcDeleteNodeHistory Members

> Reference: Represents a command which deletes the values within a time range from the history of a node.

<dl class="api-definition">
<dt>Type</dt>
<dd><a href="./">OpcDeleteNodeHistory</a></dd>
<dt>Namespace</dt>
<dd><a href="../namespaces/opc.uafx.client">Opc.UaFx.Client</a></dd>
<dt>Assembly</dt>
<dd>Opc.UaFx.Advanced.dll</dd>
<dt>Package</dt>
<dd>Opc.UaFx.Advanced v2.59.0</dd>
<dt>Also in</dt>
<dd>Opc.UaFx.Client</dd>
</dl>

Inherits members from [OpcNodeServiceCommand](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.opcnodeservicecommand/members), [OpcServiceCommand](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.opcservicecommand/members).

## Constructors

### OpcDeleteNodeHistory

<span class="api-meta">15 overloads</span>

| Overload | Description |
|---|---|
| [OpcDeleteNodeHistory(OpcNodeId)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcdeletenodehistory/members#opcdeletenodehistory-opc-uafx-opcnodeid) | Initializes a new instance of the [OpcDeleteNodeHistory](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcdeletenodehistory/) class using the `nodeId` specified. |
| [OpcDeleteNodeHistory(OpcNodeId, DateTime?)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcdeletenodehistory/members#opcdeletenodehistory-opc-uafx-opcnodeid-system-nullable-of-system-datetime) | Initializes a new instance of the [OpcDeleteNodeHistory](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcdeletenodehistory/) class using the `nodeId` and `startTime` specified. |
| [OpcDeleteNodeHistory(OpcNodeId, DateTime?, DateTime?)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcdeletenodehistory/members#opcdeletenodehistory-opc-uafx-opcnodeid-system-nullable-of-system-datetime-system-nullable-of-system-datetime) | Initializes a new instance of the [OpcDeleteNodeHistory](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcdeletenodehistory/) class using the `nodeId`, `startTime` and `endTime` specified. |
| [OpcDeleteNodeHistory(string)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcdeletenodehistory/members#opcdeletenodehistory-system-string) | Initializes a new instance of the [OpcDeleteNodeHistory](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcdeletenodehistory/) class using the `nodeId` specified. |
| [OpcDeleteNodeHistory(string, DateTime?)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcdeletenodehistory/members#opcdeletenodehistory-system-string-system-nullable-of-system-datetime) | Initializes a new instance of the [OpcDeleteNodeHistory](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcdeletenodehistory/) class using the `nodeId` and `startTime` specified. |
| [OpcDeleteNodeHistory(string, DateTime?, DateTime?)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcdeletenodehistory/members#opcdeletenodehistory-system-string-system-nullable-of-system-datetime-system-nullable-of-system-datetime) | Initializes a new instance of the [OpcDeleteNodeHistory](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcdeletenodehistory/) class using the `nodeId`, `startTime` and `endTime` specified. |
| [OpcDeleteNodeHistory(int)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcdeletenodehistory/members#opcdeletenodehistory-system-int32) | Initializes a new instance of the [OpcDeleteNodeHistory](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcdeletenodehistory/) class using the `nodeId` specified. |
| [OpcDeleteNodeHistory(int, DateTime?)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcdeletenodehistory/members#opcdeletenodehistory-system-int32-system-nullable-of-system-datetime) | Initializes a new instance of the [OpcDeleteNodeHistory](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcdeletenodehistory/) class using the `nodeId` and `startTime` specified. |
| [OpcDeleteNodeHistory(int, DateTime?, DateTime?)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcdeletenodehistory/members#opcdeletenodehistory-system-int32-system-nullable-of-system-datetime-system-nullable-of-system-datetime) | Initializes a new instance of the [OpcDeleteNodeHistory](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcdeletenodehistory/) class using the `nodeId`, `startTime` and `endTime` specified. |
| [OpcDeleteNodeHistory(string, int)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcdeletenodehistory/members#opcdeletenodehistory-system-string-system-int32) | Initializes a new instance of the [OpcDeleteNodeHistory](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcdeletenodehistory/) class using the `nodeId` and `namespaceIndex` specified. |
| [OpcDeleteNodeHistory(string, int, DateTime?)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcdeletenodehistory/members#opcdeletenodehistory-system-string-system-int32-system-nullable-of-system-datetime) | Initializes a new instance of the [OpcDeleteNodeHistory](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcdeletenodehistory/) class using the `nodeId`, `namespaceIndex` and `startTime` specified. |
| [OpcDeleteNodeHistory(string, int, DateTime?, DateTime?)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcdeletenodehistory/members#opcdeletenodehistory-system-string-system-int32-system-nullable-of-system-datetime-system-nullable-of-system-datetime) | Initializes a new instance of the [OpcDeleteNodeHistory](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcdeletenodehistory/) class using the `nodeId`, `namespaceIndex`, `startTime` and `endTime` specified. |
| [OpcDeleteNodeHistory(int, int)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcdeletenodehistory/members#opcdeletenodehistory-system-int32-system-int32) | Initializes a new instance of the [OpcDeleteNodeHistory](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcdeletenodehistory/) class using the `nodeId` and `namespaceIndex` specified. |
| [OpcDeleteNodeHistory(int, int, DateTime?)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcdeletenodehistory/members#opcdeletenodehistory-system-int32-system-int32-system-nullable-of-system-datetime) | Initializes a new instance of the [OpcDeleteNodeHistory](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcdeletenodehistory/) class using the `nodeId`, `namespaceIndex` and `startTime` specified. |
| [OpcDeleteNodeHistory(int, int, DateTime?, DateTime?)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcdeletenodehistory/members#opcdeletenodehistory-system-int32-system-int32-system-nullable-of-system-datetime-system-nullable-of-system-datetime) | Initializes a new instance of the [OpcDeleteNodeHistory](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcdeletenodehistory/) class using the `nodeId`, `namespaceIndex`, `startTime` and `endTime` specified. |

#### OpcDeleteNodeHistory(OpcNodeId)

Initializes a new instance of the [OpcDeleteNodeHistory](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcdeletenodehistory/) class using the `nodeId` specified.

<div class="api-signature" data-lang="csharp">

```csharp
public OpcDeleteNodeHistory(OpcNodeId nodeId)
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Sub New(nodeId As OpcNodeId)
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `nodeId` | [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) | The [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) of the node from whose history the values are to be deleted. |

**Exceptions**

| Exception | Condition |
|---|---|
| [ArgumentException](https://learn.microsoft.com/dotnet/api/system.argumentexception) | The `nodeId` is a null identifier (see [IsNull](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/members#isnull)). |
| [ArgumentNullException](https://learn.microsoft.com/dotnet/api/system.argumentnullexception) | The `nodeId` is a null reference (Nothing in Visual Basic). |

#### OpcDeleteNodeHistory(OpcNodeId, DateTime?)

Initializes a new instance of the [OpcDeleteNodeHistory](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcdeletenodehistory/) class using the `nodeId` and `startTime` specified.

<div class="api-signature" data-lang="csharp">

```csharp
public OpcDeleteNodeHistory(OpcNodeId nodeId, DateTime? startTime)
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Sub New(nodeId As OpcNodeId, startTime As Date?)
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `nodeId` | [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) | The [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) of the node from whose history the values are to be deleted. |
| `startTime` | [Nullable](https://learn.microsoft.com/dotnet/api/system.nullable-1)&lt;[DateTime](https://learn.microsoft.com/dotnet/api/system.datetime)&gt; | The start of the time range whose values are to be deleted or a null reference (Nothing in Visual Basic) to use [MinValue](https://learn.microsoft.com/dotnet/api/system.datetime.minvalue). |

**Exceptions**

| Exception | Condition |
|---|---|
| [ArgumentException](https://learn.microsoft.com/dotnet/api/system.argumentexception) | The `nodeId` is a null identifier (see [IsNull](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/members#isnull)). |
| [ArgumentNullException](https://learn.microsoft.com/dotnet/api/system.argumentnullexception) | The `nodeId` is a null reference (Nothing in Visual Basic). |

#### OpcDeleteNodeHistory(OpcNodeId, DateTime?, DateTime?)

Initializes a new instance of the [OpcDeleteNodeHistory](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcdeletenodehistory/) class using the `nodeId`, `startTime` and `endTime` specified.

<div class="api-signature" data-lang="csharp">

```csharp
public OpcDeleteNodeHistory(
    OpcNodeId nodeId,
    DateTime? startTime,
    DateTime? endTime)
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Sub New(nodeId As OpcNodeId, startTime As Date?, endTime As Date?)
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `nodeId` | [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) | The [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) of the node from whose history the values are to be deleted. |
| `startTime` | [Nullable](https://learn.microsoft.com/dotnet/api/system.nullable-1)&lt;[DateTime](https://learn.microsoft.com/dotnet/api/system.datetime)&gt; | The start of the time range whose values are to be deleted or a null reference (Nothing in Visual Basic) to use [MinValue](https://learn.microsoft.com/dotnet/api/system.datetime.minvalue). |
| `endTime` | [Nullable](https://learn.microsoft.com/dotnet/api/system.nullable-1)&lt;[DateTime](https://learn.microsoft.com/dotnet/api/system.datetime)&gt; | The end of the time range whose values are to be deleted or a null reference (Nothing in Visual Basic) to use [MaxValue](https://learn.microsoft.com/dotnet/api/system.datetime.maxvalue). |

**Exceptions**

| Exception | Condition |
|---|---|
| [ArgumentException](https://learn.microsoft.com/dotnet/api/system.argumentexception) | The `nodeId` is a null identifier (see [IsNull](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/members#isnull)). |
| [ArgumentNullException](https://learn.microsoft.com/dotnet/api/system.argumentnullexception) | The `nodeId` is a null reference (Nothing in Visual Basic). |

#### OpcDeleteNodeHistory(string)

Initializes a new instance of the [OpcDeleteNodeHistory](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcdeletenodehistory/) class using the `nodeId` specified.

<div class="api-signature" data-lang="csharp">

```csharp
public OpcDeleteNodeHistory(string nodeId)
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Sub New(nodeId As String)
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `nodeId` | [String](https://learn.microsoft.com/dotnet/api/system.string) | The textual node identifier of the node from whose history the values are to be deleted. |

**Exceptions**

| Exception | Condition |
|---|---|
| [ArgumentException](https://learn.microsoft.com/dotnet/api/system.argumentexception) | The `nodeId` is a null reference (Nothing in Visual Basic) or equals [Empty](https://learn.microsoft.com/dotnet/api/system.string.empty), which results in a null identifier (see [IsNull](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/members#isnull)). |
| [FormatException](https://learn.microsoft.com/dotnet/api/system.formatexception) | The `nodeId` is not a valid node identifier expression (see [Parse](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/members#parse)) and [AlwaysParseStringIdentifiers](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcautomatism/members#alwaysparsestringidentifiers) is false. |

#### OpcDeleteNodeHistory(string, DateTime?)

Initializes a new instance of the [OpcDeleteNodeHistory](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcdeletenodehistory/) class using the `nodeId` and `startTime` specified.

<div class="api-signature" data-lang="csharp">

```csharp
public OpcDeleteNodeHistory(string nodeId, DateTime? startTime)
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Sub New(nodeId As String, startTime As Date?)
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `nodeId` | [String](https://learn.microsoft.com/dotnet/api/system.string) | The textual node identifier of the node from whose history the values are to be deleted. |
| `startTime` | [Nullable](https://learn.microsoft.com/dotnet/api/system.nullable-1)&lt;[DateTime](https://learn.microsoft.com/dotnet/api/system.datetime)&gt; | The start of the time range whose values are to be deleted or a null reference (Nothing in Visual Basic) to use [MinValue](https://learn.microsoft.com/dotnet/api/system.datetime.minvalue). |

**Exceptions**

| Exception | Condition |
|---|---|
| [ArgumentException](https://learn.microsoft.com/dotnet/api/system.argumentexception) | The `nodeId` is a null reference (Nothing in Visual Basic) or equals [Empty](https://learn.microsoft.com/dotnet/api/system.string.empty), which results in a null identifier (see [IsNull](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/members#isnull)). |
| [FormatException](https://learn.microsoft.com/dotnet/api/system.formatexception) | The `nodeId` is not a valid node identifier expression (see [Parse](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/members#parse)) and [AlwaysParseStringIdentifiers](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcautomatism/members#alwaysparsestringidentifiers) is false. |

#### OpcDeleteNodeHistory(string, DateTime?, DateTime?)

Initializes a new instance of the [OpcDeleteNodeHistory](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcdeletenodehistory/) class using the `nodeId`, `startTime` and `endTime` specified.

<div class="api-signature" data-lang="csharp">

```csharp
public OpcDeleteNodeHistory(
    string nodeId,
    DateTime? startTime,
    DateTime? endTime)
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Sub New(nodeId As String, startTime As Date?, endTime As Date?)
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `nodeId` | [String](https://learn.microsoft.com/dotnet/api/system.string) | The textual node identifier of the node from whose history the values are to be deleted. |
| `startTime` | [Nullable](https://learn.microsoft.com/dotnet/api/system.nullable-1)&lt;[DateTime](https://learn.microsoft.com/dotnet/api/system.datetime)&gt; | The start of the time range whose values are to be deleted or a null reference (Nothing in Visual Basic) to use [MinValue](https://learn.microsoft.com/dotnet/api/system.datetime.minvalue). |
| `endTime` | [Nullable](https://learn.microsoft.com/dotnet/api/system.nullable-1)&lt;[DateTime](https://learn.microsoft.com/dotnet/api/system.datetime)&gt; | The end of the time range whose values are to be deleted or a null reference (Nothing in Visual Basic) to use [MaxValue](https://learn.microsoft.com/dotnet/api/system.datetime.maxvalue). |

**Exceptions**

| Exception | Condition |
|---|---|
| [ArgumentException](https://learn.microsoft.com/dotnet/api/system.argumentexception) | The `nodeId` is a null reference (Nothing in Visual Basic) or equals [Empty](https://learn.microsoft.com/dotnet/api/system.string.empty), which results in a null identifier (see [IsNull](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/members#isnull)). |
| [FormatException](https://learn.microsoft.com/dotnet/api/system.formatexception) | The `nodeId` is not a valid node identifier expression (see [Parse](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/members#parse)) and [AlwaysParseStringIdentifiers](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcautomatism/members#alwaysparsestringidentifiers) is false. |

#### OpcDeleteNodeHistory(int)

Initializes a new instance of the [OpcDeleteNodeHistory](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcdeletenodehistory/) class using the `nodeId` specified.

<div class="api-signature" data-lang="csharp">

```csharp
public OpcDeleteNodeHistory(int nodeId)
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Sub New(nodeId As Integer)
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `nodeId` | [Int32](https://learn.microsoft.com/dotnet/api/system.int32) | The numeric node identifier of the node from whose history the values are to be deleted. |

**Exceptions**

| Exception | Condition |
|---|---|
| [ArgumentException](https://learn.microsoft.com/dotnet/api/system.argumentexception) | The node identifier specified by `nodeId` is a null identifier (see [IsNull](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/members#isnull)). |

#### OpcDeleteNodeHistory(int, DateTime?)

Initializes a new instance of the [OpcDeleteNodeHistory](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcdeletenodehistory/) class using the `nodeId` and `startTime` specified.

<div class="api-signature" data-lang="csharp">

```csharp
public OpcDeleteNodeHistory(int nodeId, DateTime? startTime)
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Sub New(nodeId As Integer, startTime As Date?)
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `nodeId` | [Int32](https://learn.microsoft.com/dotnet/api/system.int32) | The numeric node identifier of the node from whose history the values are to be deleted. |
| `startTime` | [Nullable](https://learn.microsoft.com/dotnet/api/system.nullable-1)&lt;[DateTime](https://learn.microsoft.com/dotnet/api/system.datetime)&gt; | The start of the time range whose values are to be deleted or a null reference (Nothing in Visual Basic) to use [MinValue](https://learn.microsoft.com/dotnet/api/system.datetime.minvalue). |

**Exceptions**

| Exception | Condition |
|---|---|
| [ArgumentException](https://learn.microsoft.com/dotnet/api/system.argumentexception) | The node identifier specified by `nodeId` is a null identifier (see [IsNull](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/members#isnull)). |

#### OpcDeleteNodeHistory(int, DateTime?, DateTime?)

Initializes a new instance of the [OpcDeleteNodeHistory](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcdeletenodehistory/) class using the `nodeId`, `startTime` and `endTime` specified.

<div class="api-signature" data-lang="csharp">

```csharp
public OpcDeleteNodeHistory(int nodeId, DateTime? startTime, DateTime? endTime)
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Sub New(nodeId As Integer, startTime As Date?, endTime As Date?)
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `nodeId` | [Int32](https://learn.microsoft.com/dotnet/api/system.int32) | The numeric node identifier of the node from whose history the values are to be deleted. |
| `startTime` | [Nullable](https://learn.microsoft.com/dotnet/api/system.nullable-1)&lt;[DateTime](https://learn.microsoft.com/dotnet/api/system.datetime)&gt; | The start of the time range whose values are to be deleted or a null reference (Nothing in Visual Basic) to use [MinValue](https://learn.microsoft.com/dotnet/api/system.datetime.minvalue). |
| `endTime` | [Nullable](https://learn.microsoft.com/dotnet/api/system.nullable-1)&lt;[DateTime](https://learn.microsoft.com/dotnet/api/system.datetime)&gt; | The end of the time range whose values are to be deleted or a null reference (Nothing in Visual Basic) to use [MaxValue](https://learn.microsoft.com/dotnet/api/system.datetime.maxvalue). |

**Exceptions**

| Exception | Condition |
|---|---|
| [ArgumentException](https://learn.microsoft.com/dotnet/api/system.argumentexception) | The node identifier specified by `nodeId` is a null identifier (see [IsNull](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/members#isnull)). |

#### OpcDeleteNodeHistory(string, int)

Initializes a new instance of the [OpcDeleteNodeHistory](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcdeletenodehistory/) class using the `nodeId` and `namespaceIndex` specified.

<div class="api-signature" data-lang="csharp">

```csharp
public OpcDeleteNodeHistory(string nodeId, int namespaceIndex)
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Sub New(nodeId As String, namespaceIndex As Integer)
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `nodeId` | [String](https://learn.microsoft.com/dotnet/api/system.string) | The textual node identifier of the node from whose history the values are to be deleted. |
| `namespaceIndex` | [Int32](https://learn.microsoft.com/dotnet/api/system.int32) | The index of the namespace within that the node with the `nodeId` specified can be located. |

**Exceptions**

| Exception | Condition |
|---|---|
| [ArgumentException](https://learn.microsoft.com/dotnet/api/system.argumentexception) | The node identifier specified by `nodeId` and `namespaceIndex` is a null identifier (see [IsNull](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/members#isnull)). |

#### OpcDeleteNodeHistory(string, int, DateTime?)

Initializes a new instance of the [OpcDeleteNodeHistory](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcdeletenodehistory/) class using the `nodeId`, `namespaceIndex` and `startTime` specified.

<div class="api-signature" data-lang="csharp">

```csharp
public OpcDeleteNodeHistory(
    string nodeId,
    int namespaceIndex,
    DateTime? startTime)
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Sub New(nodeId As String, namespaceIndex As Integer, startTime As Date?)
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `nodeId` | [String](https://learn.microsoft.com/dotnet/api/system.string) | The textual node identifier of the node from whose history the values are to be deleted. |
| `namespaceIndex` | [Int32](https://learn.microsoft.com/dotnet/api/system.int32) | The index of the namespace within that the node with the `nodeId` specified can be located. |
| `startTime` | [Nullable](https://learn.microsoft.com/dotnet/api/system.nullable-1)&lt;[DateTime](https://learn.microsoft.com/dotnet/api/system.datetime)&gt; | The start of the time range whose values are to be deleted or a null reference (Nothing in Visual Basic) to use [MinValue](https://learn.microsoft.com/dotnet/api/system.datetime.minvalue). |

**Exceptions**

| Exception | Condition |
|---|---|
| [ArgumentException](https://learn.microsoft.com/dotnet/api/system.argumentexception) | The node identifier specified by `nodeId` and `namespaceIndex` is a null identifier (see [IsNull](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/members#isnull)). |

#### OpcDeleteNodeHistory(string, int, DateTime?, DateTime?)

Initializes a new instance of the [OpcDeleteNodeHistory](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcdeletenodehistory/) class using the `nodeId`, `namespaceIndex`, `startTime` and `endTime` specified.

<div class="api-signature" data-lang="csharp">

```csharp
public OpcDeleteNodeHistory(
    string nodeId,
    int namespaceIndex,
    DateTime? startTime,
    DateTime? endTime)
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Sub New(
    nodeId As String,
    namespaceIndex As Integer,
    startTime As Date?,
    endTime As Date?)
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `nodeId` | [String](https://learn.microsoft.com/dotnet/api/system.string) | The textual node identifier of the node from whose history the values are to be deleted. |
| `namespaceIndex` | [Int32](https://learn.microsoft.com/dotnet/api/system.int32) | The index of the namespace within that the node with the `nodeId` specified can be located. |
| `startTime` | [Nullable](https://learn.microsoft.com/dotnet/api/system.nullable-1)&lt;[DateTime](https://learn.microsoft.com/dotnet/api/system.datetime)&gt; | The start of the time range whose values are to be deleted or a null reference (Nothing in Visual Basic) to use [MinValue](https://learn.microsoft.com/dotnet/api/system.datetime.minvalue). |
| `endTime` | [Nullable](https://learn.microsoft.com/dotnet/api/system.nullable-1)&lt;[DateTime](https://learn.microsoft.com/dotnet/api/system.datetime)&gt; | The end of the time range whose values are to be deleted or a null reference (Nothing in Visual Basic) to use [MaxValue](https://learn.microsoft.com/dotnet/api/system.datetime.maxvalue). |

**Exceptions**

| Exception | Condition |
|---|---|
| [ArgumentException](https://learn.microsoft.com/dotnet/api/system.argumentexception) | The node identifier specified by `nodeId` and `namespaceIndex` is a null identifier (see [IsNull](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/members#isnull)). |

#### OpcDeleteNodeHistory(int, int)

Initializes a new instance of the [OpcDeleteNodeHistory](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcdeletenodehistory/) class using the `nodeId` and `namespaceIndex` specified.

<div class="api-signature" data-lang="csharp">

```csharp
public OpcDeleteNodeHistory(int nodeId, int namespaceIndex)
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Sub New(nodeId As Integer, namespaceIndex As Integer)
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `nodeId` | [Int32](https://learn.microsoft.com/dotnet/api/system.int32) | The numeric node identifier of the node from whose history the values are to be deleted. |
| `namespaceIndex` | [Int32](https://learn.microsoft.com/dotnet/api/system.int32) | The index of the namespace within that the node with the `nodeId` specified can be located. |

**Exceptions**

| Exception | Condition |
|---|---|
| [ArgumentException](https://learn.microsoft.com/dotnet/api/system.argumentexception) | The node identifier specified by `nodeId` and `namespaceIndex` is a null identifier (see [IsNull](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/members#isnull)). |

#### OpcDeleteNodeHistory(int, int, DateTime?)

Initializes a new instance of the [OpcDeleteNodeHistory](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcdeletenodehistory/) class using the `nodeId`, `namespaceIndex` and `startTime` specified.

<div class="api-signature" data-lang="csharp">

```csharp
public OpcDeleteNodeHistory(int nodeId, int namespaceIndex, DateTime? startTime)
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Sub New(nodeId As Integer, namespaceIndex As Integer, startTime As Date?)
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `nodeId` | [Int32](https://learn.microsoft.com/dotnet/api/system.int32) | The numeric node identifier of the node from whose history the values are to be deleted. |
| `namespaceIndex` | [Int32](https://learn.microsoft.com/dotnet/api/system.int32) | The index of the namespace within that the node with the `nodeId` specified can be located. |
| `startTime` | [Nullable](https://learn.microsoft.com/dotnet/api/system.nullable-1)&lt;[DateTime](https://learn.microsoft.com/dotnet/api/system.datetime)&gt; | The start of the time range whose values are to be deleted or a null reference (Nothing in Visual Basic) to use [MinValue](https://learn.microsoft.com/dotnet/api/system.datetime.minvalue). |

**Exceptions**

| Exception | Condition |
|---|---|
| [ArgumentException](https://learn.microsoft.com/dotnet/api/system.argumentexception) | The node identifier specified by `nodeId` and `namespaceIndex` is a null identifier (see [IsNull](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/members#isnull)). |

#### OpcDeleteNodeHistory(int, int, DateTime?, DateTime?)

Initializes a new instance of the [OpcDeleteNodeHistory](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcdeletenodehistory/) class using the `nodeId`, `namespaceIndex`, `startTime` and `endTime` specified.

<div class="api-signature" data-lang="csharp">

```csharp
public OpcDeleteNodeHistory(
    int nodeId,
    int namespaceIndex,
    DateTime? startTime,
    DateTime? endTime)
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Sub New(
    nodeId As Integer,
    namespaceIndex As Integer,
    startTime As Date?,
    endTime As Date?)
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `nodeId` | [Int32](https://learn.microsoft.com/dotnet/api/system.int32) | The numeric node identifier of the node from whose history the values are to be deleted. |
| `namespaceIndex` | [Int32](https://learn.microsoft.com/dotnet/api/system.int32) | The index of the namespace within that the node with the `nodeId` specified can be located. |
| `startTime` | [Nullable](https://learn.microsoft.com/dotnet/api/system.nullable-1)&lt;[DateTime](https://learn.microsoft.com/dotnet/api/system.datetime)&gt; | The start of the time range whose values are to be deleted or a null reference (Nothing in Visual Basic) to use [MinValue](https://learn.microsoft.com/dotnet/api/system.datetime.minvalue). |
| `endTime` | [Nullable](https://learn.microsoft.com/dotnet/api/system.nullable-1)&lt;[DateTime](https://learn.microsoft.com/dotnet/api/system.datetime)&gt; | The end of the time range whose values are to be deleted or a null reference (Nothing in Visual Basic) to use [MaxValue](https://learn.microsoft.com/dotnet/api/system.datetime.maxvalue). |

**Exceptions**

| Exception | Condition |
|---|---|
| [ArgumentException](https://learn.microsoft.com/dotnet/api/system.argumentexception) | The node identifier specified by `nodeId` and `namespaceIndex` is a null identifier (see [IsNull](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/members#isnull)). |
