ArcObjects Library Reference (Server)  

IServerObjectAdmin.DeleteServerDirectory Method

Deletes a server directory such that its cleanup is no longer managed by the GIS server. It does not delete the physical directory from disk.

[Visual Basic .NET]
Public Sub DeleteServerDirectory ( _
    ByVal Path As String _
public void DeleteServerDirectory (
    string Path
HRESULT DeleteServerDirectory(
  BSTR Path


Path [in]   Path is a parameter of type BSTR

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.


The DeleteServerDirectory method removes a directory from the set of directories managed by the GIS server. The DeleteServerDirectory method will not affect the physical directory.

When a server directory is removed with this method, the GIS Server will not longer manage the cleanup of output files written to that directory. Applicaitons or server objects that are configured to write their output to the physical directory that is referenced by the server directory will continue to work, but the files they write will not be cleaned up by the server.

See Also

IServerObjectAdmin Interface