Remove(Index: Integer): Boolean;
Index - output index of ETL task object.
The Remove method removes an output of ETL task object, which index is passed by the Index parameter.
Sub Main;
Var
MB: IMetabase;
Object: IMetabaseObject;
EtlTask: IEtlTask;
Join: IEtlPlainDataSplit;
Outputs: IEtlPlainOutputs;
Begin
MB:=MetabaseClass.Active;
Object:=MB.ItemById("ETL").Edit;
EtlTask:=Object As IEtlTask;
Join:=EtlTask.Item(0) As IEtlPlainDataSplit;
Outputs:=Join.PlainOutputs;
Outputs.Remove(Outputs.Count-1);
Object.Save;
End Sub Main;
After executing the example the last output of the first ETL task object is removed. The type of ETL task object is Split. The repository object has the ETL identifier.
See also: