IMetabaseDefinitions.RemoveById

Syntax

RemoveById(Id: String): Boolean;

Parameters

Id - index of the repository description.

Description

The RemoveById method removes the repository description, the identifier of which is passed by the Id parameter.

Example

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:

IMetabaseDefinitions