<div class="content"><p>The DeleteAccountingData method deletes <a href="e371cc74-bf4c-4870-8afe-5062cc628b4f#gt_1156c8ef-4d49-462b-9f76-aebcb6c57011" data-linktype="relative-path">accounting</a> data within a
specified time period from the accounting database (section <a href="c0a51f88-04b5-4945-ba86-e8e8cf2df1fe" data-linktype="relative-path">3.2.1.2</a>). If there is no
accounting data present between the specified dates, the functions returns
SUCCESS while no accounting data is deleted.</p><dl>
<dd>
<div><pre> [id(6), helpstring(&#34;method DeleteAccountingData&#34;)] HRESULT DeleteAccountingData(
   [in] BSTR bstrStartingDate,
   [in] BSTR bstrEndingDate,
   [in] BSTR bstrMachineName
 );
</pre></div>
</dd></dl><p><b>bstrStartingDate: </b>A string that specifies the
starting date for the deletion, in <a href="edaf1cfc-12b2-4093-8ff8-227c21f9bff5" data-linktype="relative-path">date-and-time</a> format
(section 2.2.1.3). If this value is not in the correct format, the date range
is ignored and the complete set of accounting data is deleted.</p><p><b>bstrEndingDate: </b>A string that specifies the
ending date for the deletion, in date-and-time format. If this value is not in
the correct format, the date range is ignored and the complete set of
accounting data is deleted.</p><p><b>bstrMachineName: </b>A string that specifies the
name of the machine whose accounting data is to be deleted. A default
accounting database SHOULD<a id="Appendix_A_Target_47"></a><a aria-label="Product behavior note 47" href="1af5b971-a682-44a0-affe-c98947d5e7f7#Appendix_A_47" data-linktype="relative-path">&lt;47&gt;</a> be
defined.</p><p><b>Return Values: </b>This method returns 0x00000000
for success or a negative <a href="e371cc74-bf4c-4870-8afe-5062cc628b4f#gt_799103ab-b3cb-4eab-8c55-322821b2b235" data-linktype="relative-path">HRESULT</a>
value (in the following table or in <a href="../ms-erref/1bc92ddf-b79e-413c-bbaa-99a5281a6c90" data-linktype="relative-path">[MS-ERREF]</a>
section <a href="../ms-erref/705fb797-2175-4a90-b5a3-3918024b10b8" data-linktype="relative-path">2.1.1</a>)
if an error occurs.</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>Operation successful.</p>
  </td>
 </tr><tr>
  <td>
  <p>0x80070057</p>
  <p>E_INVALIDARG</p>
  </td>
  <td>
  <p>One or more arguments are invalid.<a id="Appendix_A_Target_48"></a><a aria-label="Product behavior note 48" href="1af5b971-a682-44a0-affe-c98947d5e7f7#Appendix_A_48" data-linktype="relative-path">&lt;48&gt;</a></p>
  </td>
 </tr><tr>
  <td>
  <p>0xC1FF01FA</p>
  <p>WRM_ERR_WYUKON_NOT_CONNECTABLE</p>
  </td>
  <td>
  <p>Cannot establish a connection to the accounting
  database.</p>
  </td>
 </tr><tr>
  <td>
  <p>0xC1FF01FB</p>
  <p>WRM_ERR_WYUKON_CORRUPTED</p>
  </td>
  <td>
  <p>Cannot establish a connection to the accounting
  database; either the database is in single user mode and already connected or
  it is in an invalid or corrupted state.</p>
  </td>
 </tr><tr>
  <td>
  <p>0xC1FF0203</p>
  <p>WRM_ERR_JET_SERVER_TOO_BUSY</p>
  </td>
  <td>
  <p>The server can service only one accounting request at
  a time.</p>
  </td>
 </tr></tbody></table>
</dd></dl><p>Additional <a href="d5942816-752f-480a-9712-38ef0a248b6a" data-linktype="relative-path">IWRMAccounting</a> interface
methods are specified in section 3.2.4.3.</p></div>