Skip to main content

system.kanoa.asset.deleteAssetsWithForce

This function requires KanoaOPS module

Description

Stored procedure that will forcibly delete an asset including child assets and any entries in mode, start, shift, and quality tables (kanoaOPS).

Syntax

deleteAssetsWithForce(assetId, userId)
  • Parameters
      assetId (int) - ID of the asset to be forcibly deleted.
      userId (int) - User ID.
  • Returns
      successFlag (bool) - Boolean indicating the success of the operation.
      msg (str) - Status message ('Deleted' or error message).
  • Code Examples

    # Example Usage:
    asset_id = 123
    user_id = 456
    success, message = system.kanoa.asset.deleteAssetsWithForce(asset_id, user_id)