---
title: "system.mes.removeTagCollectorValue"
id: "system-mes-removetagcollectorvalue"
project: "MES User Manual"
url: "https://docs.sepasoft.com/articles/user-manual/system-mes-removetagcollectorvalue"
updated: 2026-07-31T14:54:02Z
---

# system\.mes\.removeTagCollectorValue

**Sepasoft MES Module Suite**

### system.mes.removeTagCollectorValue(equipmentPath, collectorType, key, dateTime)

Remove the value with the specified timestamp for the MES tag collector. If a value does not existing for the specified timestamp, then an exception will be returned.

Syntax

**system.mes.removeTagCollectorValue(equipmentPath, collectorType, key, dateTime)**

Parameters

String **equipmentPath** - The path from the production model to the desired equipment.

String **collectorType** - The name of the tag collector type.

String **key** - Where there are multiple instances of a tag collector type, this specifies which one to use. For example, there can be multiple MES counters for the "Equipment Count" tag collector type. If not needed, pass an empty string. In other words it is the name of the MES counter or the name of the Additional Factor.

Dated **dateTime** - The date of the value to remove.

Returns

Nothing

Scope

All

Code Example
 
```python
date = system.date.getDate(2017, 2, 20)
dateTime = system.date.setTime(date, 15, 13, 31)
equipmentPath = '[global]\Enterprise\San Marcos\MP Rotator\MP Rotator 1'
collectorType = 'Equipment Mode'
key = ''

system.mes.removeTagCollectorValue(equipmentPath, collectorType, key, dateTime)
```


**Sepasoft MES Module Suite**