Delete method: AnalyticInstance class
Syntax
Delete(ForceUnload, &RecordRef)
Description
Use the Delete method to remove all the metadata related to the given analytic instance.
Every analytic type definition is defined with an application package that contains three methods: Create, Delete, and Copy. The values in &RecordRef are passed to the Delete method.
This method does not delete the analytic instance if the analytic instance is currently loaded. Specify ForceUnload as true to unload the analytic instance before deleting it.
Parameters
| Parameter | Description |
|---|---|
|
ForceUnload |
Specify whether to force the deletion of the analytic instance. This parameter takes a Boolean value. If the analytic instance is currently loaded, specifying true for this parameter forces the analytic instance to be unloaded before it is deleted. |
|
&RecordRef |
Specify a record to pass in values to the application package Delete class that's associated with the analytic type definition. |
Returns
None.
Example
&ai.Delete(TRUE, &Record);