# system.kanoa.quality.config.deleteDataSource(attributeDataSourceId, userId)

Deletes an attribute datasource. FK constraints will prevent the deletion of  an attribute data source that is being used.

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

---
### Returns
**# of records modified** `Integer`<br />
**msg** `String` None if success<br />

---
### Example
```python
attributeDataSourceId = 67
userId = 5
retVal, msg = system.kanoa.quality.config.deleteDataSource(attributeDataSourceId, userId)
```
