Skip to main content

system.kanoa.attribute.deleteAttributeWithHistory

Description

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

Syntax

deleteAttributeWithHistory(attributeId, userId)

Parameters:
  • attributeId (int): Attribute ID
  • userId (int): User ID

  • Returns:
  • (int): Number of records modified
  • Code Examples

    # Example usage
    attributeId = 1
    userId = 123
    modifiedRecords, message = system.kanoa.attribute.deleteAttributeWithHistory(attributeId, userId)
    print(modifiedRecords, message) # Print the number of modified records and message