system.kanoa.quality.config.deleteDataType
Description
Deletes a data type in KanoaQDS.Syntax
deleteDataType(dataTypeId, userId)- int dataTypeId - ID of the data type to be deleted.
- int userId - User ID
- tuple(success: bool, message: str) - Deletion status and message.
Code Examples
# Usage example
data_type_id_to_delete = 1
user_id = 123
delete_status, delete_message = system.kanoa.quality.config.deleteDataType(dataTypeId=data_type_id_to_delete, userId=user_id)
if delete_status:
print(delete_message)
else:
print(f"Deletion failed. Reason: {delete_message}")