Partager via


IIsWebVirtualDir.AppDelete (WMI)

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

objIIsWebVirtualDir.AppDelete(
      Recursive
)

Parameters

  • Recursive
    [in] A Boolean. A value of True indicates that all child applications should also be deleted. A value of False indicates that only the application at the current node should be deleted.

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.

Return Values

This method has no return values.

Requirements

Server: Requires or Windows Server 2003.

Product: IIS

See Also