<div class="content"><p>The AppDeleteRecoverable method deletes the application from
the specified <a href="1243ba70-74ca-44f9-be0b-dfd6697010b4#gt_086b13f2-2715-4000-a16c-6acc3d59cc19" data-linktype="relative-path">metabase</a>
path and saves external state needed to recreate the application if it is
recovered.</p><dl>
<dd>
<div><pre> HRESULT AppDeleteRecoverable(
   [in, unique, string] LPCWSTR szMDPath,
   [in] BOOL fRecursive
 );
</pre></div>
</dd></dl><p><b>szMDPath: </b> A pointer to a Unicode string that
contains the metabase path of the application. </p><p><b>fRecursive: </b> A flag indicating whether
application definitions are also to be deleted from all subkeys (TRUE) or just
from the application at this key (FALSE).</p><p><b>Return Values: </b> A signed 32-bit value that
indicates return status. If the method returns a negative value, it failed. If
the 12-bit facility code (bits 16–27) is set to 0x007, the value contains a
Win32 error code in the lower 16 bits. Zero or positive values indicate
success, with the lower 16 bits in positive nonzero values containing warnings
or flags defined in the method implementation. For more information about Win32
error codes and <a href="../ms-dtyp/a9046ed2-bfb2-4d56-a719-2824afce59ac" data-linktype="relative-path">HRESULT</a>
values, see <a href="../ms-erref/1bc92ddf-b79e-413c-bbaa-99a5281a6c90" data-linktype="relative-path">[MS-ERREF]</a>.
</p><dl>
<dd>
<table><thead>
  <tr>
   <th>
   <p>Return value/code</p>
   </th>
   <th>
   <p>Description</p>
   </th>
  </tr>
 </thead><tbody><tr>
  <td>
  <p>0x00000000</p>
  <p>S_OK</p>
  </td>
  <td>
  <p>The call was successful.</p>
  </td>
 </tr><tr>
  <td>
  <p>0x80070057</p>
  <p>E_INVALIDARG</p>
  </td>
  <td>
  <p>One or more arguments are invalid.</p>
  </td>
 </tr><tr>
  <td>
  <p>0x80070003</p>
  <p>ERROR_PATH_NOT_FOUND</p>
  </td>
  <td>
  <p>The system cannot find the path specified.</p>
  </td>
 </tr></tbody></table>
</dd></dl><p>The <a href="1243ba70-74ca-44f9-be0b-dfd6697010b4#gt_e127848e-c66d-427d-b3aa-9f904fa4ada7" data-linktype="relative-path">opnum</a>
field value for this method is 7. </p><p>When processing this call, the server MUST do the following:</p><ul><li><p><span><span> 
</span></span>If the string length of the <i>szMDPath</i> parameter is &lt;=
10, return E_INVALIDARG.</p>
</li><li><p><span><span> 
</span></span>If the metabase path specified by <i>szMDPath</i> does not exist,
return ERROR_PATH_NOT_FOUND.</p>
</li><li><p><span><span> 
</span></span>If there is no application defined at the metabase path specified
by <i>szMDPath</i>, return S_OK.</p>
</li></ul><p>If the preceding conditions do not apply, the server MAY
mark the application in such a way as to prevent it from being run. The server
MUST NOT change the value of <a href="5df9ca57-2a81-4ff4-97d5-fd39aa6731af" data-linktype="relative-path">MD_APP_ISOLATED</a>
and <a href="941aefe0-7996-4614-ac1e-b899c6ff8b7e" data-linktype="relative-path">MD_APP_ROOT</a> at the
metabase key specified by <i>szMDPath</i>.</p></div>