system.kanoa.quality.config.deleteDataSource
Description
Deletes an attribute datasource in KanoaQDS. Foreign key constraints should prevent deleting an attribute datasource that is being used.Syntax
deleteDataSource(attributeDataSourceId, userId)- int attributeDataSourceId - ID of the attribute datasource to be deleted.
- int userId - User ID
- bool successFlag - Boolean indicating the success of the deletion.
- str msg - Message indicating the result of the deletion.
Code Examples
# Usage example
delete_success, delete_msg = system.kanoa.quality.config.deleteDataSource(attributeDataSourceId=67, userId=123)
if delete_success:
print(f"Successfully deleted attribute datasource: {delete_msg}")
else:
print(f"Deletion failed. Error: {delete_msg}")