Truncate;
The Truncate method clears the time series database.
On executing the method:
Tables with data of the time series database are cleared.
Sequences of tables are reset. If the time series database has its own sequence, it is reset; and if it does not have its own, it is not reset.
Indexes in tables are rebuilt.
Executing the example requires that the repository contains a time series database with the OBJ153 identifier. Add links to the Metabase, Cubes system assemblies.
Sub UserProc;
Var
mb: IMetabase;
rub: IRubricator;
Begin
mb := MetabaseClass.Active;
rub := mb.ItemById("OBJ153").Bind As IRubricator;
rub.Truncate;
End Sub UserProc;
After execution the time series database with OBJ153 identifier will be cleared.
See also: