ArcGIS Enterprise SDK
ILocatorWorkspace.DeleteLocator Method
ArcGIS Developer Help

ILocatorWorkspace.DeleteLocator Method

Deletes a locator.

[Visual Basic .NET]
Public Sub DeleteLocator ( _
    ByVal Name As String _
)
[C#]
public void DeleteLocator (
    string Name
);

Description

The DeleteLocator method deletes a locator or locator style from a locator workspace.

Remarks

The Name parameter is the name of the locator or locator style that you want to remove from the locator workspace.

In ArcSDE workspaces, locator names are prefixed by the name of the ArcSDE user that owns the locator, as in "jack.My Locator".  When you call methods in ArcObjects that have parameters that specify locators in a ArcSDE workspace, you must specify the full name of the locator, including the user name. Failing to do so will result in an error.  

See Also

ILocatorWorkspace Interface