This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Server > ESRI.ArcGIS.Server > Interfaces > IS > IServerObjectAdmin Interface > IServerObjectAdmin.DeleteServerDirectory Method (ArcObjects .NET 10.5 SDK) |
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 _ )
[C#] public void DeleteServerDirectory ( string Path );
[C++]
HRESULT DeleteServerDirectory(
BSTR Path
);
[C++]
Parameters Path [in] Path is a parameter of type BSTR
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.