Skip to main content

system.kanoa.quality.config.deleteDataType

This function requires KanoaQDS module

Description

Deletes a data type in KanoaQDS.

Syntax

deleteDataType(dataTypeId, userId)
  • Parameters
      int dataTypeId - ID of the data type to be deleted.
      int userId - User ID
  • Returns
      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}")