RemoveById(Id: String): Boolean;
Id - index of the repository description.
The RemoveById method removes the repository description, the identifier of which is passed by the Id parameter.
Sub Main;
Var
Man: IMetabaseManager;
Defs: IMetabaseDefinitions;
Def: IMetabaseDefinition;
Begin
Man := MetabaseManagerFactory.Active;
Defs := Man.Definitions;
Def := Defs.FindById("TestDefinition");
If Def <> Null Then
Defs.RemoveById("TestDefinition");
End If;
End Sub Main;
After executing the example if there is the repository description with the TestDefinition identifier, this description is removed.
See also: