# OpcClient.DeleteNodeHistory Method

> Reference: Deletes all raw historical values of the node identified by the nodeId specified.

<dl class="api-definition">
<dt>Type</dt>
<dd><a href="./">OpcClient</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>Members</dt>
<dd><a href="./members">OpcClient Members</a></dd>
<dt>Also in</dt>
<dd>Opc.UaFx.Client</dd>
</dl>

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

| Overload | Description |
|---|---|
| [DeleteNodeHistory(OpcNodeId)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcclient/deletenodehistory#deletenodehistory-opc-uafx-opcnodeid) | Deletes all raw historical values of the node identified by the `nodeId` specified. |
| [DeleteNodeHistory(OpcNodeId, DateTime?)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcclient/deletenodehistory#deletenodehistory-opc-uafx-opcnodeid-system-nullable-of-system-datetime) | Deletes the raw historical values of the node identified by the `nodeId` specified beginning at the `startTime` specified. |
| [DeleteNodeHistory(OpcNodeId, DateTime?, DateTime?)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcclient/deletenodehistory#deletenodehistory-opc-uafx-opcnodeid-system-nullable-of-system-datetime-system-nullable-of-system-datetime) | Deletes the raw historical values of the node identified by the `nodeId` specified within the period defined by the `startTime` and `endTime` specified. |
| [DeleteNodeHistory(string)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcclient/deletenodehistory#deletenodehistory-system-string) | Deletes all raw historical values of the node identified by the `nodeId` specified. |
| [DeleteNodeHistory(string, DateTime?)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcclient/deletenodehistory#deletenodehistory-system-string-system-nullable-of-system-datetime) | Deletes the raw historical values of the node identified by the `nodeId` specified beginning at the `startTime` specified. |
| [DeleteNodeHistory(string, DateTime?, DateTime?)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcclient/deletenodehistory#deletenodehistory-system-string-system-nullable-of-system-datetime-system-nullable-of-system-datetime) | Deletes the raw historical values of the node identified by the `nodeId` specified within the period defined by the `startTime` and `endTime` specified. |
| [DeleteNodeHistory(int)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcclient/deletenodehistory#deletenodehistory-system-int32) | Deletes all raw historical values of the node identified by the `nodeId` specified. |
| [DeleteNodeHistory(int, DateTime?)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcclient/deletenodehistory#deletenodehistory-system-int32-system-nullable-of-system-datetime) | Deletes the raw historical values of the node identified by the `nodeId` specified beginning at the `startTime` specified. |
| [DeleteNodeHistory(int, DateTime?, DateTime?)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcclient/deletenodehistory#deletenodehistory-system-int32-system-nullable-of-system-datetime-system-nullable-of-system-datetime) | Deletes the raw historical values of the node identified by the `nodeId` specified within the period defined by the `startTime` and `endTime` specified. |
| [DeleteNodeHistory(string, int)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcclient/deletenodehistory#deletenodehistory-system-string-system-int32) | Deletes all raw historical values of the node identified by the `nodeId` specified. |
| [DeleteNodeHistory(string, int, DateTime?)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcclient/deletenodehistory#deletenodehistory-system-string-system-int32-system-nullable-of-system-datetime) | Deletes the raw historical values of the node identified by the `nodeId` specified beginning at the `startTime` specified. |
| [DeleteNodeHistory(string, int, DateTime?, DateTime?)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcclient/deletenodehistory#deletenodehistory-system-string-system-int32-system-nullable-of-system-datetime-system-nullable-of-system-datetime) | Deletes the raw historical values of the node identified by the `nodeId` specified within the period defined by the `startTime` and `endTime` specified. |
| [DeleteNodeHistory(int, int)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcclient/deletenodehistory#deletenodehistory-system-int32-system-int32) | Deletes all raw historical values of the node identified by the `nodeId` specified. |
| [DeleteNodeHistory(int, int, DateTime?)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcclient/deletenodehistory#deletenodehistory-system-int32-system-int32-system-nullable-of-system-datetime) | Deletes the raw historical values of the node identified by the `nodeId` specified beginning at the `startTime` specified. |
| [DeleteNodeHistory(int, int, DateTime?, DateTime?)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcclient/deletenodehistory#deletenodehistory-system-int32-system-int32-system-nullable-of-system-datetime-system-nullable-of-system-datetime) | Deletes the raw historical values of the node identified by the `nodeId` specified within the period defined by the `startTime` and `endTime` specified. |
| [DeleteNodeHistory(OpcDeleteNodeHistory)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcclient/deletenodehistory#deletenodehistory-opc-uafx-client-opcdeletenodehistory) | Deletes raw historical values of the node as defined by the `command` specified. |

**Exceptions (all overloads)**

| Exception | Condition |
|---|---|
| [OpcException](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcexception/) | The client is not connected to the server or the service execution failed upon different circumstances; for more details see exception details. |
| [ObjectDisposedException](https://learn.microsoft.com/dotnet/api/system.objectdisposedexception) | The object has been disposed of. |

## DeleteNodeHistory(OpcNodeId)

Deletes all raw historical values of the node identified by the `nodeId` specified.

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

```csharp
public OpcStatusCollection DeleteNodeHistory(OpcNodeId nodeId)
```

</div>

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

```vbnet
Public Function DeleteNodeHistory(nodeId As OpcNodeId) As OpcStatusCollection
```

</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 whose history is to be updated. |

**Returns**

[OpcStatusCollection](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscollection/)

An [OpcStatusCollection](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscollection/) with the [OpcStatus](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatus/) the server reports for the deletion.

**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). |

**Remarks**

The period deleted begins at [MinValue](https://learn.microsoft.com/dotnet/api/system.datetime.minvalue) and ends at [MaxValue](https://learn.microsoft.com/dotnet/api/system.datetime.maxvalue).

## DeleteNodeHistory(OpcNodeId, DateTime?)

Deletes the raw historical values of the node identified by the `nodeId` specified beginning at the `startTime` specified.

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

```csharp
public OpcStatusCollection DeleteNodeHistory(
    OpcNodeId nodeId,
    DateTime? startTime)
```

</div>

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

```vbnet
Public Function DeleteNodeHistory(
    nodeId As OpcNodeId,
    startTime As Date?) As OpcStatusCollection
```

</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 whose history is to be updated. |
| `startTime` | [Nullable](https://learn.microsoft.com/dotnet/api/system.nullable-1)&lt;[DateTime](https://learn.microsoft.com/dotnet/api/system.datetime)&gt; | The beginning of the period to delete or a null reference (Nothing in Visual Basic) to delete beginning at [MinValue](https://learn.microsoft.com/dotnet/api/system.datetime.minvalue). |

**Returns**

[OpcStatusCollection](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscollection/)

An [OpcStatusCollection](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscollection/) with the [OpcStatus](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatus/) the server reports for the deletion.

**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). |

**Remarks**

The period deleted ends at [MaxValue](https://learn.microsoft.com/dotnet/api/system.datetime.maxvalue).

## DeleteNodeHistory(OpcNodeId, DateTime?, DateTime?)

Deletes the raw historical values of the node identified by the `nodeId` specified within the period defined by the `startTime` and `endTime` specified.

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

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

</div>

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

```vbnet
Public Function DeleteNodeHistory(
    nodeId As OpcNodeId,
    startTime As Date?,
    endTime As Date?) As OpcStatusCollection
```

</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 whose history is to be updated. |
| `startTime` | [Nullable](https://learn.microsoft.com/dotnet/api/system.nullable-1)&lt;[DateTime](https://learn.microsoft.com/dotnet/api/system.datetime)&gt; | The beginning of the period to delete or a null reference (Nothing in Visual Basic) to delete beginning at [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 period to delete or a null reference (Nothing in Visual Basic) to delete up to [MaxValue](https://learn.microsoft.com/dotnet/api/system.datetime.maxvalue). |

**Returns**

[OpcStatusCollection](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscollection/)

An [OpcStatusCollection](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscollection/) with the [OpcStatus](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatus/) the server reports for the deletion.

**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). |

## DeleteNodeHistory(string)

Deletes all raw historical values of the node identified by the `nodeId` specified.

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

```csharp
public OpcStatusCollection DeleteNodeHistory(string nodeId)
```

</div>

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

```vbnet
Public Function DeleteNodeHistory(nodeId As String) As OpcStatusCollection
```

</div>

**Parameters**

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

**Returns**

[OpcStatusCollection](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscollection/)

An [OpcStatusCollection](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscollection/) with the [OpcStatus](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatus/) the server reports for the deletion.

**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. |

**Remarks**

The period deleted begins at [MinValue](https://learn.microsoft.com/dotnet/api/system.datetime.minvalue) and ends at [MaxValue](https://learn.microsoft.com/dotnet/api/system.datetime.maxvalue).

## DeleteNodeHistory(string, DateTime?)

Deletes the raw historical values of the node identified by the `nodeId` specified beginning at the `startTime` specified.

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

```csharp
public OpcStatusCollection DeleteNodeHistory(string nodeId, DateTime? startTime)
```

</div>

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

```vbnet
Public Function DeleteNodeHistory(
    nodeId As String,
    startTime As Date?) As OpcStatusCollection
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `nodeId` | [String](https://learn.microsoft.com/dotnet/api/system.string) | The textual node identifier of the node whose history is to be updated. |
| `startTime` | [Nullable](https://learn.microsoft.com/dotnet/api/system.nullable-1)&lt;[DateTime](https://learn.microsoft.com/dotnet/api/system.datetime)&gt; | The beginning of the period to delete or a null reference (Nothing in Visual Basic) to delete beginning at [MinValue](https://learn.microsoft.com/dotnet/api/system.datetime.minvalue). |

**Returns**

[OpcStatusCollection](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscollection/)

An [OpcStatusCollection](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscollection/) with the [OpcStatus](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatus/) the server reports for the deletion.

**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. |

**Remarks**

The period deleted ends at [MaxValue](https://learn.microsoft.com/dotnet/api/system.datetime.maxvalue).

## DeleteNodeHistory(string, DateTime?, DateTime?)

Deletes the raw historical values of the node identified by the `nodeId` specified within the period defined by the `startTime` and `endTime` specified.

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

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

</div>

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

```vbnet
Public Function DeleteNodeHistory(
    nodeId As String,
    startTime As Date?,
    endTime As Date?) As OpcStatusCollection
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `nodeId` | [String](https://learn.microsoft.com/dotnet/api/system.string) | The textual node identifier of the node whose history is to be updated. |
| `startTime` | [Nullable](https://learn.microsoft.com/dotnet/api/system.nullable-1)&lt;[DateTime](https://learn.microsoft.com/dotnet/api/system.datetime)&gt; | The beginning of the period to delete or a null reference (Nothing in Visual Basic) to delete beginning at [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 period to delete or a null reference (Nothing in Visual Basic) to delete up to [MaxValue](https://learn.microsoft.com/dotnet/api/system.datetime.maxvalue). |

**Returns**

[OpcStatusCollection](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscollection/)

An [OpcStatusCollection](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscollection/) with the [OpcStatus](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatus/) the server reports for the deletion.

**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. |

## DeleteNodeHistory(int)

Deletes all raw historical values of the node identified by the `nodeId` specified.

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

```csharp
public OpcStatusCollection DeleteNodeHistory(int nodeId)
```

</div>

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

```vbnet
Public Function DeleteNodeHistory(nodeId As Integer) As OpcStatusCollection
```

</div>

**Parameters**

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

**Returns**

[OpcStatusCollection](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscollection/)

An [OpcStatusCollection](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscollection/) with the [OpcStatus](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatus/) the server reports for the deletion.

**Exceptions**

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

**Remarks**

The period deleted begins at [MinValue](https://learn.microsoft.com/dotnet/api/system.datetime.minvalue) and ends at [MaxValue](https://learn.microsoft.com/dotnet/api/system.datetime.maxvalue).

## DeleteNodeHistory(int, DateTime?)

Deletes the raw historical values of the node identified by the `nodeId` specified beginning at the `startTime` specified.

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

```csharp
public OpcStatusCollection DeleteNodeHistory(int nodeId, DateTime? startTime)
```

</div>

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

```vbnet
Public Function DeleteNodeHistory(
    nodeId As Integer,
    startTime As Date?) As OpcStatusCollection
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `nodeId` | [Int32](https://learn.microsoft.com/dotnet/api/system.int32) | The numeric node identifier of the node whose history is to be updated. |
| `startTime` | [Nullable](https://learn.microsoft.com/dotnet/api/system.nullable-1)&lt;[DateTime](https://learn.microsoft.com/dotnet/api/system.datetime)&gt; | The beginning of the period to delete or a null reference (Nothing in Visual Basic) to delete beginning at [MinValue](https://learn.microsoft.com/dotnet/api/system.datetime.minvalue). |

**Returns**

[OpcStatusCollection](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscollection/)

An [OpcStatusCollection](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscollection/) with the [OpcStatus](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatus/) the server reports for the deletion.

**Exceptions**

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

**Remarks**

The period deleted ends at [MaxValue](https://learn.microsoft.com/dotnet/api/system.datetime.maxvalue).

## DeleteNodeHistory(int, DateTime?, DateTime?)

Deletes the raw historical values of the node identified by the `nodeId` specified within the period defined by the `startTime` and `endTime` specified.

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

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

</div>

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

```vbnet
Public Function DeleteNodeHistory(
    nodeId As Integer,
    startTime As Date?,
    endTime As Date?) As OpcStatusCollection
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `nodeId` | [Int32](https://learn.microsoft.com/dotnet/api/system.int32) | The numeric node identifier of the node whose history is to be updated. |
| `startTime` | [Nullable](https://learn.microsoft.com/dotnet/api/system.nullable-1)&lt;[DateTime](https://learn.microsoft.com/dotnet/api/system.datetime)&gt; | The beginning of the period to delete or a null reference (Nothing in Visual Basic) to delete beginning at [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 period to delete or a null reference (Nothing in Visual Basic) to delete up to [MaxValue](https://learn.microsoft.com/dotnet/api/system.datetime.maxvalue). |

**Returns**

[OpcStatusCollection](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscollection/)

An [OpcStatusCollection](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscollection/) with the [OpcStatus](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatus/) the server reports for the deletion.

**Exceptions**

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

## DeleteNodeHistory(string, int)

Deletes all raw historical values of the node identified by the `nodeId` specified.

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

```csharp
public OpcStatusCollection DeleteNodeHistory(string nodeId, int namespaceIndex)
```

</div>

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

```vbnet
Public Function DeleteNodeHistory(
    nodeId As String,
    namespaceIndex As Integer) As OpcStatusCollection
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `nodeId` | [String](https://learn.microsoft.com/dotnet/api/system.string) | The textual node identifier of the node whose history is to be updated. |
| `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. |

**Returns**

[OpcStatusCollection](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscollection/)

An [OpcStatusCollection](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscollection/) with the [OpcStatus](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatus/) the server reports for the deletion.

**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)). |

**Remarks**

The period deleted begins at [MinValue](https://learn.microsoft.com/dotnet/api/system.datetime.minvalue) and ends at [MaxValue](https://learn.microsoft.com/dotnet/api/system.datetime.maxvalue).

## DeleteNodeHistory(string, int, DateTime?)

Deletes the raw historical values of the node identified by the `nodeId` specified beginning at the `startTime` specified.

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

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

</div>

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

```vbnet
Public Function DeleteNodeHistory(
    nodeId As String,
    namespaceIndex As Integer,
    startTime As Date?) As OpcStatusCollection
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `nodeId` | [String](https://learn.microsoft.com/dotnet/api/system.string) | The textual node identifier of the node whose history is to be updated. |
| `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 beginning of the period to delete or a null reference (Nothing in Visual Basic) to delete beginning at [MinValue](https://learn.microsoft.com/dotnet/api/system.datetime.minvalue). |

**Returns**

[OpcStatusCollection](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscollection/)

An [OpcStatusCollection](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscollection/) with the [OpcStatus](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatus/) the server reports for the deletion.

**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)). |

**Remarks**

The period deleted ends at [MaxValue](https://learn.microsoft.com/dotnet/api/system.datetime.maxvalue).

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

Deletes the raw historical values of the node identified by the `nodeId` specified within the period defined by the `startTime` and `endTime` specified.

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

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

</div>

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

```vbnet
Public Function DeleteNodeHistory(
    nodeId As String,
    namespaceIndex As Integer,
    startTime As Date?,
    endTime As Date?) As OpcStatusCollection
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `nodeId` | [String](https://learn.microsoft.com/dotnet/api/system.string) | The textual node identifier of the node whose history is to be updated. |
| `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 beginning of the period to delete or a null reference (Nothing in Visual Basic) to delete beginning at [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 period to delete or a null reference (Nothing in Visual Basic) to delete up to [MaxValue](https://learn.microsoft.com/dotnet/api/system.datetime.maxvalue). |

**Returns**

[OpcStatusCollection](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscollection/)

An [OpcStatusCollection](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscollection/) with the [OpcStatus](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatus/) the server reports for the deletion.

**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)). |

## DeleteNodeHistory(int, int)

Deletes all raw historical values of the node identified by the `nodeId` specified.

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

```csharp
public OpcStatusCollection DeleteNodeHistory(int nodeId, int namespaceIndex)
```

</div>

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

```vbnet
Public Function DeleteNodeHistory(
    nodeId As Integer,
    namespaceIndex As Integer) As OpcStatusCollection
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `nodeId` | [Int32](https://learn.microsoft.com/dotnet/api/system.int32) | The numeric node identifier of the node whose history is to be updated. |
| `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. |

**Returns**

[OpcStatusCollection](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscollection/)

An [OpcStatusCollection](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscollection/) with the [OpcStatus](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatus/) the server reports for the deletion.

**Exceptions**

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

**Remarks**

The period deleted begins at [MinValue](https://learn.microsoft.com/dotnet/api/system.datetime.minvalue) and ends at [MaxValue](https://learn.microsoft.com/dotnet/api/system.datetime.maxvalue).

## DeleteNodeHistory(int, int, DateTime?)

Deletes the raw historical values of the node identified by the `nodeId` specified beginning at the `startTime` specified.

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

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

</div>

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

```vbnet
Public Function DeleteNodeHistory(
    nodeId As Integer,
    namespaceIndex As Integer,
    startTime As Date?) As OpcStatusCollection
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `nodeId` | [Int32](https://learn.microsoft.com/dotnet/api/system.int32) | The numeric node identifier of the node whose history is to be updated. |
| `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 beginning of the period to delete or a null reference (Nothing in Visual Basic) to delete beginning at [MinValue](https://learn.microsoft.com/dotnet/api/system.datetime.minvalue). |

**Returns**

[OpcStatusCollection](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscollection/)

An [OpcStatusCollection](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscollection/) with the [OpcStatus](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatus/) the server reports for the deletion.

**Exceptions**

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

**Remarks**

The period deleted ends at [MaxValue](https://learn.microsoft.com/dotnet/api/system.datetime.maxvalue).

## DeleteNodeHistory(int, int, DateTime?, DateTime?)

Deletes the raw historical values of the node identified by the `nodeId` specified within the period defined by the `startTime` and `endTime` specified.

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

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

</div>

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

```vbnet
Public Function DeleteNodeHistory(
    nodeId As Integer,
    namespaceIndex As Integer,
    startTime As Date?,
    endTime As Date?) As OpcStatusCollection
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `nodeId` | [Int32](https://learn.microsoft.com/dotnet/api/system.int32) | The numeric node identifier of the node whose history is to be updated. |
| `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 beginning of the period to delete or a null reference (Nothing in Visual Basic) to delete beginning at [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 period to delete or a null reference (Nothing in Visual Basic) to delete up to [MaxValue](https://learn.microsoft.com/dotnet/api/system.datetime.maxvalue). |

**Returns**

[OpcStatusCollection](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscollection/)

An [OpcStatusCollection](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscollection/) with the [OpcStatus](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatus/) the server reports for the deletion.

**Exceptions**

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

## DeleteNodeHistory(OpcDeleteNodeHistory)

Deletes raw historical values of the node as defined by the `command` specified.

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

```csharp
public OpcStatusCollection DeleteNodeHistory(OpcDeleteNodeHistory command)
```

</div>

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

```vbnet
Public Function DeleteNodeHistory(
    command As OpcDeleteNodeHistory) As OpcStatusCollection
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `command` | [OpcDeleteNodeHistory](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcdeletenodehistory/) | The [OpcDeleteNodeHistory](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcdeletenodehistory/) command which defines the node and the period of the raw values to delete from its history. |

**Returns**

[OpcStatusCollection](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscollection/)

An [OpcStatusCollection](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscollection/) with the [OpcStatus](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatus/) instances the server reports for the command or, if it reports no status per value, only with the status for the node.

**Exceptions**

| Exception | Condition |
|---|---|
| [ArgumentNullException](https://learn.microsoft.com/dotnet/api/system.argumentnullexception) | The `command` is a null reference (Nothing in Visual Basic). |
