# system.kanoa.attribute.deleteAttribute(attributeId, userId)

Deletes an attribute. SQL foreign key constraints will prevent the deletion an attribute that is being used

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

---
### Returns
**success** `Boolean`<br />
**message** `String` # of records deleted or error message<br />

---
### Example
```python
attributeId = 1
userId = 123
success, message = system.kanoa.attribute.deleteAttribute(attributeId, userId)
```
