Skip to main content

system.kanoa.quality.config.deleteTolerances

Requires kanoaQDS license

Description

Deletes all tolerances for an attribute.

Syntax

deleteTolerances(attributeId, userId)

Parameters:
  • attributeId (int): ID of the attribute for which tolerances should be deleted.
  • userId (int): User ID

  • Returns:
  • successFlag (bool): Boolean indicating the success of the deletion.
  • msg (str): Message indicating the result of the deletion.
  • Code Examples

    # Usage example
    delete_success, delete_msg = system.kanoa.quality.config.deleteTolerances(attributeId=1, userId=123)

    if delete_success:
    print(f"Successfully deleted tolerances for attribute: {delete_msg}")
    else:
    print(f"Deletion failed. Error: {delete_msg}")