mcDeleteAsset()

Removes a MindSphere Asset from the CtrlMindConnect Ctrl Extension.

Synopsis

int mcDeleteAsset(uint assetId);

Parameters

Parameter Description
assetId Defines which asset will be deleted from the Ctrl Extensions internal state.

Return value

The function mcDeleteAsset returns 0 when it was successfully executed and -1 when arguments are missing.

Error

The function mcDeleteAsset returns 0 when it was successfully executed and -1 when arguments are missing. The errors of the MindSphere API are shown in the log viewer.

Description

Removes a MindSphere Asset from the CtrlMindConnect Ctrl Extension. The assetId provided for this function will no longer be valid.

Example

#uses "CtrlMindConnect"

#uses "classes/mindSphere/MindSphereAsset"

void main()

{

string dp = "NameOfMindSphereAsset";

/* This MindSphere Asset must already exist */

uint assetId;

int err = mcNewAsset(getMappingFromAssetDP(dp), assetId);

if(err == 0)

{

err = mcDeleteAsset(assetId);

DebugTN(err);

}

}

Assignment

MindSphere

Availability

UI

See also

mcNewAsset()