Skip to main content

system.kanoa.quality.config.deleteAttributeWithHistory

This function requires KanoaQDS module

Description

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

Syntax

deleteAttributeWithHistory(attributeId, userId)
  • Parameters
      int attributeId - ID of the attribute to be deleted.
      int userId - User ID
  • Returns
      int modifiedRecords - 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")