# C1.DataEngine.QueryFactory.Delete

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_DataEngine_QueryFactory_Delete_" data-uid="C1.DataEngine.QueryFactory.Delete*">Delete Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_DataEngine_QueryFactory_Delete_" data-uid="C1.DataEngine.QueryFactory.Delete*"></a>
<h4 id="C1_DataEngine_QueryFactory_Delete_C1_DataEngine_Workspace_System_String_" data-uid="C1.DataEngine.QueryFactory.Delete(C1.DataEngine.Workspace,System.String)">Delete(Workspace, string)</h4>
<div class="markdown level1 summary"><p>Deletes a C1DataEngine query and any dependencies created by this module.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static void Delete(Workspace workspace, string name)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Sub Delete(workspace As Workspace, name As String)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="../C1.DataEngine/C1.DataEngine.Workspace.html">Workspace</a></td>
      <td><span class="parametername">workspace</span></td>
      <td><p>The C1DataEngine <a class="xref" href="../C1.DataEngine/C1.DataEngine.Workspace.html">Workspace</a> object containing the queries to be deleted.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">name</span></td>
      <td><p>The base name of the query to be deleted.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_DataEngine_QueryFactory_Delete_C1_DataEngine_Workspace_System_String__remarks">Remarks</h5>
<div class="markdown level1 remarks">   <p>When this module creates a named query containing join
and/or range elements, one or more internal queries are
created, and the named query derives from those. Use this
method to delete a named query and all of its dependencies.</p>
</div>
</div>
