Skip to main content

system.kanoa.quality.config.deleteAttributeWithHistory

Requires kanoaQDS license

Description

Deletes an attribute that has history by removing any event data associated with this attribute.

Syntax

deleteAttributeWithHistory(attributeId, userId)

Parameters:
  • attributeId (int): ID of the attribute to be deleted.
  • userId (int): User ID

  • Returns:
  • modifiedRecords (int): Number of records modified during the deletion.
  • Code Examples

    # Usage example
    modified_records = system.kanoa.quality.config.deleteAttributeWithHistory(attributeId=1, userId=123)

    if modified_records is not None:
    print(f"Successfully deleted {modified_records} records")