# system.kanoa.quality.config.deleteAttributeWithHistory(attributeId, userId)

Deletes an attribute that has history by removing any event data associated with this attribute.

---
### Parameters
**attributeId** `Integer`: Id of attribute to delete<br />
**userId** `Integer`: Id of user executing the function<br />

---
### Returns
**# of records modified** `Integer`<br />

---
### Example
```python
attributeId = 1
userId = 5
success, msg = system.kanoa.quality.config.deleteAttributeWithHistory(attributeId, userId)
```
