Share via


IIISApplicationAdmin::DeleteApplication

The IIISApplicationAdmin::DeleteApplication method deletes a Web application from this metabase key, and optionally all child nodes. If the application is running, it will be shut down. Use the GetProcessMode method to ensure that IIS is running in worker process isolation mode before using this method. For more information about isolation modes, see IIS Modes of Operation.

STDMETHODIMP DeleteApplication(
   LPCWSTR szMDPath,
   BOOL fRecursive
);

Parameters

  • szMDPath
    Specifies the metabase path to the starting point of the application.

  • fRecursive
    If TRUE, causes this method to delete all applications beneath szMDPath.

Return Values

This method returns S_OK if the method succeeded, or other error codes converted to an HRESULT if the method failed.

Requirements

Server: Requires or Windows Server 2003.

Product: IIS

Header: Declared in iwamreg.h.

See Also