Repository.Model.DeleteModel

Deletes an unused model from the current project. Returns a Boolean value; when true, indicates a successful deletion.

Throws an exception if the model is in use.

Syntax
.Model.DeleteModel(ID)

Parameters
ID
 * Integer. The ID number of the model to delete.

Example
This example assumes that an unused model with ID#71 exists in a repository. VBA|VB.NET MyRepository Repository MyRepository.Project.SetCurrentProject (1) MyRepository.Model.DeleteModel(71)