IWamAdmin::AppDelete

The IWamAdmin::AppDelete method deletes a Web application definition from this metabase key, and optionally all subordinate keys. If the application is running, it will be shut down. All resources associated with the application, such as out-of-process packages, will be released. This action cannot be undone.

Syntax

HRESULT STDMETHODCALLTYPE AppDelete( 
  LPCWSTR szMDPath,  // [string][unique][in] 
  BOOL fRecursive    // [in] 
); 
 

Parameters

szMDPath
Specifies the metabase path to the starting point of the application.
fRecursive
Specifies whether application definitions are also to be deleted from all subordinate keys (TRUE), or just the application at this key (FALSE).

Return Values

The method will return NO_ERROR if the method succeeded, including the case that no application was defined at the specified path. If the method fails, other error codes converted to HRESULT will be returned.