Compartilhar via


IIsWebDirectory.AppDeleteRecursive (ADSI)

The AppDeleteRecursive method deletes an application definition so that the content can be moved or copied and then recreated as an application. This method also deletes application definitions on child nodes under the current node, if there are any.

objIIsWebDirectory.AppDeleteRecursive 

Return Values

This method has no return values.

Example Code

<%  
  Dim DirObj  
  Set DirObj = GetObject("IIS://LocalHost/W3SVC/1/ROOT/MyAppDir")  
  'Delete the application at this directory  
  'and all subdirectories.  
  DirObj.AppDeleteRecursive  
%>  

Remarks

If the applications are running, they will be shut down. If the application is in-process with IIS, all resources associated with the application (such as out-of-process packages) will be released if the resource is not referenced by another in-process application. Server component DLLs are not released from in-process applications, even if they aren't currently referenced by other applications.

Note

Deletions cannot be undone.

Requirements

Client: Requires Windows XP Professional, Windows 2000 Professional, or Windows NT Workstation 4.0.

Server: Requires Windows Server 2003, Windows 2000 Server, or Windows NT Server 4.0.

Product: IIS

See Also

Concepts

IIsWebDirectory (ADSI)

IIsWebVirtualDir (ADSI)

Using ADSI to Configure IIS