---
title: "Live Analysis | Script to mass disable Live Analysis"
id: "script-to-mass-disable-live-analysis-3-0"
project: "Knowledge Base"
url: "https://docs.sepasoft.com/articles/knowledge-base/script-to-mass-disable-live-analysis-3-0"
updated: 2026-07-23T18:08:45Z
---

# Live Analysis \| Script to mass disable Live Analysis

### Disable Live Analysis via Scripting

```python
f = system.mes.object.filter.createFilter()
f.setMESObjectTypeName('Line,LineCell,LineCellGroup')
objs = system.mes.loadMESObjects(f)
saveList = system.mes.object.list.createList()
for obj in objs:
	la = obj.getLiveAnalysis()
	if not la.isEmpty():
		saveList.add(obj)
		for prop in la:
			# pick one
			prop.setActive(False) # setActive = can be turned back on
			# or
			#prop.setEnable(False) # setEnabled = soft delete (still exists in DB but no longer retrieved with the object)

system.mes.saveMESObjects(saveList)
```


| ![Error](/resources/Storage/knowledge-base/Error.png) | Any running operations will cause disabling the Live Analysis for that line to fail |
| --- | --- |

See:

[Live Analysis](/articles/user-manual/live-analysis)

| Related issues |  |
| --- | --- |