Skip to main content

system.kanoa.attribute.deleteAttributeWithHistory

This function is part of the kanoaOPS module

Description

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

Syntax

deleteAttributeWithHistory(attributeId, userId)
  • Parameters
      int attributeId - Attribute ID
      int userId - 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