Skip to main content

system.kanoa.asset.deleteAssets

Requires kanoaOPS license

Description

Deletes the asset and all children underneath using SQL cascade function.

Syntax

deleteAssets(assetId, userId)

Parameters:
  • assetId (int): ID of the asset to be deleted.
  • userId (int): User ID.

  • Returns:
  • # of records modified (int)
  • message (string): None if success
  • Code Examples

    assetId = 123
    userId = 456
    retVal, message = system.kanoa.asset.deleteAssets(assetId, userId)