# OpcClient.DeleteNodeHistoryAtTime Method

> Reference: Deletes historical values at specific timestamps of the node as defined by the command 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 |
|---|---|
| [DeleteNodeHistoryAtTime(OpcNodeId, DateTime)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcclient/deletenodehistoryattime#deletenodehistoryattime-opc-uafx-opcnodeid-system-datetime) | Deletes the historical value of the node identified by the `nodeId` specified at the `time` specified. |
| [DeleteNodeHistoryAtTime(OpcNodeId, IEnumerable&lt;DateTime&gt;)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcclient/deletenodehistoryattime#deletenodehistoryattime-opc-uafx-opcnodeid-system-collections-generic-ienumerable-of-system-datetime) | Deletes the historical values of the node identified by the `nodeId` specified at the `times` specified. |
| [DeleteNodeHistoryAtTime(OpcNodeId, params DateTime\[\])](#deletenodehistoryattime-opc-uafx-opcnodeid-system-datetime-array) | Deletes the historical values of the node identified by the `nodeId` specified at the `times` specified. |
| [DeleteNodeHistoryAtTime(string, DateTime)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcclient/deletenodehistoryattime#deletenodehistoryattime-system-string-system-datetime) | Deletes the historical value of the node identified by the `nodeId` specified at the `time` specified. |
| [DeleteNodeHistoryAtTime(string, IEnumerable&lt;DateTime&gt;)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcclient/deletenodehistoryattime#deletenodehistoryattime-system-string-system-collections-generic-ienumerable-of-system-datetime) | Deletes the historical values of the node identified by the `nodeId` specified at the `times` specified. |
| [DeleteNodeHistoryAtTime(string, params DateTime\[\])](#deletenodehistoryattime-system-string-system-datetime-array) | Deletes the historical values of the node identified by the `nodeId` specified at the `times` specified. |
| [DeleteNodeHistoryAtTime(int, DateTime)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcclient/deletenodehistoryattime#deletenodehistoryattime-system-int32-system-datetime) | Deletes the historical value of the node identified by the `nodeId` specified at the `time` specified. |
| [DeleteNodeHistoryAtTime(int, IEnumerable&lt;DateTime&gt;)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcclient/deletenodehistoryattime#deletenodehistoryattime-system-int32-system-collections-generic-ienumerable-of-system-datetime) | Deletes the historical values of the node identified by the `nodeId` specified at the `times` specified. |
| [DeleteNodeHistoryAtTime(int, params DateTime\[\])](#deletenodehistoryattime-system-int32-system-datetime-array) | Deletes the historical values of the node identified by the `nodeId` specified at the `times` specified. |
| [DeleteNodeHistoryAtTime(string, int, DateTime)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcclient/deletenodehistoryattime#deletenodehistoryattime-system-string-system-int32-system-datetime) | Deletes the historical value of the node identified by the `nodeId` specified at the `time` specified. |
| [DeleteNodeHistoryAtTime(string, int, IEnumerable&lt;DateTime&gt;)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcclient/deletenodehistoryattime#deletenodehistoryattime-system-string-system-int32-system-collections-generic-ienumerable-of-system-datetime) | Deletes the historical values of the node identified by the `nodeId` specified at the `times` specified. |
| [DeleteNodeHistoryAtTime(string, int, params DateTime\[\])](#deletenodehistoryattime-system-string-system-int32-system-datetime-array) | Deletes the historical values of the node identified by the `nodeId` specified at the `times` specified. |
| [DeleteNodeHistoryAtTime(int, int, DateTime)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcclient/deletenodehistoryattime#deletenodehistoryattime-system-int32-system-int32-system-datetime) | Deletes the historical value of the node identified by the `nodeId` specified at the `time` specified. |
| [DeleteNodeHistoryAtTime(int, int, IEnumerable&lt;DateTime&gt;)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcclient/deletenodehistoryattime#deletenodehistoryattime-system-int32-system-int32-system-collections-generic-ienumerable-of-system-datetime) | Deletes the historical values of the node identified by the `nodeId` specified at the `times` specified. |
| [DeleteNodeHistoryAtTime(int, int, params DateTime\[\])](#deletenodehistoryattime-system-int32-system-int32-system-datetime-array) | Deletes the historical values of the node identified by the `nodeId` specified at the `times` specified. |
| [DeleteNodeHistoryAtTime(OpcDeleteNodeHistoryAtTime)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcclient/deletenodehistoryattime#deletenodehistoryattime-opc-uafx-client-opcdeletenodehistoryattime) | Deletes historical values at specific timestamps 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. |

## DeleteNodeHistoryAtTime(OpcNodeId, DateTime)

Deletes the historical value of the node identified by the `nodeId` specified at the `time` specified.

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

```csharp
public OpcStatus DeleteNodeHistoryAtTime(OpcNodeId nodeId, DateTime time)
```

</div>

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

```vbnet
Public Function DeleteNodeHistoryAtTime(
    nodeId As OpcNodeId,
    time As Date) As OpcStatus
```

</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. |
| `time` | [DateTime](https://learn.microsoft.com/dotnet/api/system.datetime) | The timestamp of the value to delete. |

**Returns**

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

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 `time` or, if it reports no status per timestamp, only with the status for the node.

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

## DeleteNodeHistoryAtTime(OpcNodeId, IEnumerable&lt;DateTime&gt;)

Deletes the historical values of the node identified by the `nodeId` specified at the `times` specified.

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

```csharp
public OpcStatusCollection DeleteNodeHistoryAtTime(
    OpcNodeId nodeId,
    IEnumerable<DateTime> times)
```

</div>

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

```vbnet
Public Function DeleteNodeHistoryAtTime(
    nodeId As OpcNodeId,
    times As IEnumerable(Of 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. |
| `times` | [IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)&lt;[DateTime](https://learn.microsoft.com/dotnet/api/system.datetime)&gt; | A sequence of the timestamps of the values to delete. |

**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 each timestamp or, if it reports no status per timestamp, only with the status for the node.

**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` or the `times` sequence is a null reference (Nothing in Visual Basic). |

## DeleteNodeHistoryAtTime(OpcNodeId, params DateTime\[\])

Deletes the historical values of the node identified by the `nodeId` specified at the `times` specified.

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

```csharp
public OpcStatusCollection DeleteNodeHistoryAtTime(
    OpcNodeId nodeId,
    params DateTime[] times)
```

</div>

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

```vbnet
Public Function DeleteNodeHistoryAtTime(
    nodeId As OpcNodeId,
    ParamArray times 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. |
| `times` | params [DateTime](https://learn.microsoft.com/dotnet/api/system.datetime)[] | An array of the timestamps of the values to delete. |

**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 each timestamp or, if it reports no status per timestamp, only with the status for the node.

**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` or the `times` array is a null reference (Nothing in Visual Basic). |

## DeleteNodeHistoryAtTime(string, DateTime)

Deletes the historical value of the node identified by the `nodeId` specified at the `time` specified.

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

```csharp
public OpcStatus DeleteNodeHistoryAtTime(string nodeId, DateTime time)
```

</div>

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

```vbnet
Public Function DeleteNodeHistoryAtTime(
    nodeId As String,
    time As Date) As OpcStatus
```

</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. |
| `time` | [DateTime](https://learn.microsoft.com/dotnet/api/system.datetime) | The timestamp of the value to delete. |

**Returns**

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

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 `time` or, if it reports no status per timestamp, only with the status for the node.

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

## DeleteNodeHistoryAtTime(string, IEnumerable&lt;DateTime&gt;)

Deletes the historical values of the node identified by the `nodeId` specified at the `times` specified.

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

```csharp
public OpcStatusCollection DeleteNodeHistoryAtTime(
    string nodeId,
    IEnumerable<DateTime> times)
```

</div>

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

```vbnet
Public Function DeleteNodeHistoryAtTime(
    nodeId As String,
    times As IEnumerable(Of 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. |
| `times` | [IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)&lt;[DateTime](https://learn.microsoft.com/dotnet/api/system.datetime)&gt; | A sequence of the timestamps of the values to delete. |

**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 each timestamp or, if it reports no status per timestamp, only with the status for the node.

**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)). |
| [ArgumentNullException](https://learn.microsoft.com/dotnet/api/system.argumentnullexception) | The `times` sequence is a null reference (Nothing in Visual Basic). |
| [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. |

## DeleteNodeHistoryAtTime(string, params DateTime\[\])

Deletes the historical values of the node identified by the `nodeId` specified at the `times` specified.

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

```csharp
public OpcStatusCollection DeleteNodeHistoryAtTime(
    string nodeId,
    params DateTime[] times)
```

</div>

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

```vbnet
Public Function DeleteNodeHistoryAtTime(
    nodeId As String,
    ParamArray times 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. |
| `times` | params [DateTime](https://learn.microsoft.com/dotnet/api/system.datetime)[] | An array of the timestamps of the values to delete. |

**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 each timestamp or, if it reports no status per timestamp, only with the status for the node.

**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)). |
| [ArgumentNullException](https://learn.microsoft.com/dotnet/api/system.argumentnullexception) | The `times` array is a null reference (Nothing in Visual Basic). |
| [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. |

## DeleteNodeHistoryAtTime(int, DateTime)

Deletes the historical value of the node identified by the `nodeId` specified at the `time` specified.

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

```csharp
public OpcStatusCollection DeleteNodeHistoryAtTime(int nodeId, DateTime time)
```

</div>

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

```vbnet
Public Function DeleteNodeHistoryAtTime(
    nodeId As Integer,
    time 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. |
| `time` | [DateTime](https://learn.microsoft.com/dotnet/api/system.datetime) | The timestamp of the value to delete. |

**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 `time` or, if it reports no status per timestamp, only with the status for the node.

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

## DeleteNodeHistoryAtTime(int, IEnumerable&lt;DateTime&gt;)

Deletes the historical values of the node identified by the `nodeId` specified at the `times` specified.

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

```csharp
public OpcStatusCollection DeleteNodeHistoryAtTime(
    int nodeId,
    IEnumerable<DateTime> times)
```

</div>

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

```vbnet
Public Function DeleteNodeHistoryAtTime(
    nodeId As Integer,
    times As IEnumerable(Of 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. |
| `times` | [IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)&lt;[DateTime](https://learn.microsoft.com/dotnet/api/system.datetime)&gt; | A sequence of the timestamps of the values to delete. |

**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 each timestamp or, if it reports no status per timestamp, only with the status for the node.

**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)). |
| [ArgumentNullException](https://learn.microsoft.com/dotnet/api/system.argumentnullexception) | The `times` sequence is a null reference (Nothing in Visual Basic). |

## DeleteNodeHistoryAtTime(int, params DateTime\[\])

Deletes the historical values of the node identified by the `nodeId` specified at the `times` specified.

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

```csharp
public OpcStatusCollection DeleteNodeHistoryAtTime(
    int nodeId,
    params DateTime[] times)
```

</div>

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

```vbnet
Public Function DeleteNodeHistoryAtTime(
    nodeId As Integer,
    ParamArray times 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. |
| `times` | params [DateTime](https://learn.microsoft.com/dotnet/api/system.datetime)[] | An array of the timestamps of the values to delete. |

**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 each timestamp or, if it reports no status per timestamp, only with the status for the node.

**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)). |
| [ArgumentNullException](https://learn.microsoft.com/dotnet/api/system.argumentnullexception) | The `times` array is a null reference (Nothing in Visual Basic). |

## DeleteNodeHistoryAtTime(string, int, DateTime)

Deletes the historical value of the node identified by the `nodeId` specified at the `time` specified.

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

```csharp
public OpcStatus DeleteNodeHistoryAtTime(
    string nodeId,
    int namespaceIndex,
    DateTime time)
```

</div>

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

```vbnet
Public Function DeleteNodeHistoryAtTime(
    nodeId As String,
    namespaceIndex As Integer,
    time As Date) As OpcStatus
```

</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. |
| `time` | [DateTime](https://learn.microsoft.com/dotnet/api/system.datetime) | The timestamp of the value to delete. |

**Returns**

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

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 `time` or, if it reports no status per timestamp, only with the status for the node.

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

## DeleteNodeHistoryAtTime(string, int, IEnumerable&lt;DateTime&gt;)

Deletes the historical values of the node identified by the `nodeId` specified at the `times` specified.

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

```csharp
public OpcStatusCollection DeleteNodeHistoryAtTime(
    string nodeId,
    int namespaceIndex,
    IEnumerable<DateTime> times)
```

</div>

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

```vbnet
Public Function DeleteNodeHistoryAtTime(
    nodeId As String,
    namespaceIndex As Integer,
    times As IEnumerable(Of 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. |
| `times` | [IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)&lt;[DateTime](https://learn.microsoft.com/dotnet/api/system.datetime)&gt; | A sequence of the timestamps of the values to delete. |

**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 each timestamp or, if it reports no status per timestamp, only with the status for the node.

**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)). |
| [ArgumentNullException](https://learn.microsoft.com/dotnet/api/system.argumentnullexception) | The `times` sequence is a null reference (Nothing in Visual Basic). |

## DeleteNodeHistoryAtTime(string, int, params DateTime\[\])

Deletes the historical values of the node identified by the `nodeId` specified at the `times` specified.

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

```csharp
public OpcStatusCollection DeleteNodeHistoryAtTime(
    string nodeId,
    int namespaceIndex,
    params DateTime[] times)
```

</div>

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

```vbnet
Public Function DeleteNodeHistoryAtTime(
    nodeId As String,
    namespaceIndex As Integer,
    ParamArray times 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. |
| `times` | params [DateTime](https://learn.microsoft.com/dotnet/api/system.datetime)[] | An array of the timestamps of the values to delete. |

**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 each timestamp or, if it reports no status per timestamp, only with the status for the node.

**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)). |
| [ArgumentNullException](https://learn.microsoft.com/dotnet/api/system.argumentnullexception) | The `times` array is a null reference (Nothing in Visual Basic). |

## DeleteNodeHistoryAtTime(int, int, DateTime)

Deletes the historical value of the node identified by the `nodeId` specified at the `time` specified.

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

```csharp
public OpcStatus DeleteNodeHistoryAtTime(
    int nodeId,
    int namespaceIndex,
    DateTime time)
```

</div>

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

```vbnet
Public Function DeleteNodeHistoryAtTime(
    nodeId As Integer,
    namespaceIndex As Integer,
    time As Date) As OpcStatus
```

</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. |
| `time` | [DateTime](https://learn.microsoft.com/dotnet/api/system.datetime) | The timestamp of the value to delete. |

**Returns**

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

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 `time` or, if it reports no status per timestamp, only with the status for the node.

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

## DeleteNodeHistoryAtTime(int, int, IEnumerable&lt;DateTime&gt;)

Deletes the historical values of the node identified by the `nodeId` specified at the `times` specified.

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

```csharp
public OpcStatusCollection DeleteNodeHistoryAtTime(
    int nodeId,
    int namespaceIndex,
    IEnumerable<DateTime> times)
```

</div>

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

```vbnet
Public Function DeleteNodeHistoryAtTime(
    nodeId As Integer,
    namespaceIndex As Integer,
    times As IEnumerable(Of 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. |
| `times` | [IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)&lt;[DateTime](https://learn.microsoft.com/dotnet/api/system.datetime)&gt; | A sequence of the timestamps of the values to delete. |

**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 each timestamp or, if it reports no status per timestamp, only with the status for the node.

**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)). |
| [ArgumentNullException](https://learn.microsoft.com/dotnet/api/system.argumentnullexception) | The `times` sequence is a null reference (Nothing in Visual Basic). |

## DeleteNodeHistoryAtTime(int, int, params DateTime\[\])

Deletes the historical values of the node identified by the `nodeId` specified at the `times` specified.

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

```csharp
public OpcStatusCollection DeleteNodeHistoryAtTime(
    int nodeId,
    int namespaceIndex,
    params DateTime[] times)
```

</div>

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

```vbnet
Public Function DeleteNodeHistoryAtTime(
    nodeId As Integer,
    namespaceIndex As Integer,
    ParamArray times 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. |
| `times` | params [DateTime](https://learn.microsoft.com/dotnet/api/system.datetime)[] | An array of the timestamps of the values to delete. |

**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 each timestamp or, if it reports no status per timestamp, only with the status for the node.

**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)). |
| [ArgumentNullException](https://learn.microsoft.com/dotnet/api/system.argumentnullexception) | The `times` array is a null reference (Nothing in Visual Basic). |

## DeleteNodeHistoryAtTime(OpcDeleteNodeHistoryAtTime)

Deletes historical values at specific timestamps of the node as defined by the `command` specified.

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

```csharp
public OpcStatusCollection DeleteNodeHistoryAtTime(
    OpcDeleteNodeHistoryAtTime command)
```

</div>

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

```vbnet
Public Function DeleteNodeHistoryAtTime(
    command As OpcDeleteNodeHistoryAtTime) As OpcStatusCollection
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `command` | [OpcDeleteNodeHistoryAtTime](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcdeletenodehistoryattime/) | The [OpcDeleteNodeHistoryAtTime](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcdeletenodehistoryattime/) command which defines the node and the timestamps of the 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). |
