Customization > Automation Interface > Functions > For Repositories > UnmapRepository function (automation interface)
  
UnmapRepository function (automation interface)
Syntax:
UnmapRepository (\\SQL\<server>@<instance>\<database>")
Where:
<server> is a string that specifies the name of the server on which the Database resides. The case of the name must be correct.
<database> is a string that specifies the name of the Repository from which you want to remove the bookmark in Model Explorer. The case of the name must be correct.
The UnmapRepository function removes a bookmark from a database in Model Explorer.
Examples
This example removes the Model Explorer bookmark from a database named MyDatabase.
Set objManager = CreateObject("Studio.ModelManager")
objManager.UnmapRepository("\\SQL\MyServer@MODELER\MyDatabase")