> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kinetica.com/llms.txt
> Use this file to discover all available pages before exploring further.

# killProc

<div className="kinetica-javadoc">
  <ul className="member-list">
    <li>
      <div className="section detail" id="killProc(com.gpudb.protocol.KillProcRequest)">
        <h3>killProc</h3>
        <div className="member-signature"><span className="modifiers">public</span> <span className="return-type"><a href="/content/api/java/com/gpudb/protocol/KillProcResponse" title="class in com.gpudb.protocol">KillProcResponse</a></span> <span className="element-name">killProc</span><wbr /><span className="parameters">(<a href="/content/api/java/com/gpudb/protocol/KillProcRequest" title="class in com.gpudb.protocol">KillProcRequest</a> request)</span> throws <span className="exceptions"><a href="/content/api/java/com/gpudb/GPUdbException" title="class in com.gpudb">GPUdbException</a></span></div>
        <div className="block">Kills a running proc instance.</div>

        <div className="dl notes">
          <div className="dt">Parameters:</div>
          <div className="dd"><code>request</code> - <a href="/content/api/java/com/gpudb/protocol/KillProcRequest" title="class in com.gpudb.protocol"><code>Request</code></a> object containing the parameters for the operation.</div>
          <div className="dt">Returns:</div>
          <div className="dd"><a href="/content/api/java/com/gpudb/protocol/KillProcResponse" title="class in com.gpudb.protocol"><code>Response</code></a> object containing the results of the operation.</div>
          <div className="dt">Throws:</div>
          <div className="dd"><code><a href="/content/api/java/com/gpudb/GPUdbException" title="class in com.gpudb">GPUdbException</a></code> - if an error occurs during the operation.</div>
        </div>
      </div>
    </li>

    <li>
      <div className="section detail" id="killProc(java.lang.String,java.util.Map)">
        <h3>killProc</h3>
        <div className="member-signature"><span className="modifiers">public</span> <span className="return-type"><a href="/content/api/java/com/gpudb/protocol/KillProcResponse" title="class in com.gpudb.protocol">KillProcResponse</a></span> <span className="element-name">killProc</span><wbr /><span className="parameters">(<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" className="external-link">String</a> runId, <a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/Map.html" title="class or interface in java.util" className="external-link">Map</a>\<<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" className="external-link">String</a>,<wbr /><a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" className="external-link">String</a>> options)</span> throws <span className="exceptions"><a href="/content/api/java/com/gpudb/GPUdbException" title="class in com.gpudb">GPUdbException</a></span></div>
        <div className="block">Kills a running proc instance.</div>

        <div className="dl notes">
          <div className="dt">Parameters:</div>
          <div className="dd"><code>runId</code> - The run ID of a running proc instance. If a proc with a matching run ID is not found or the proc instance has already completed, no procs will be killed. If not specified, all running proc instances will be killed. The default value is ''.</div>

          <div className="dd">
            <code>options</code> - Optional parameters.

            <ul>
              <li><a href="/content/api/java/com/gpudb/protocol/KillProcRequest.Options#RUN_TAG"><code>RUN\_TAG</code></a>: If <code>runId</code> is specified, kill the proc instance that has a matching run ID and a matching run tag that was provided to <a href="#executeProc(java.lang.String,java.util.Map,java.util.Map,java.util.List,java.util.Map,java.util.List,java.util.Map)"><code>executeProc</code></a>. If <code>runId</code> is not specified, kill the proc instance(s) where a matching run tag was provided to <a href="#executeProc(java.lang.String,java.util.Map,java.util.Map,java.util.List,java.util.Map,java.util.List,java.util.Map)"><code>executeProc</code></a>. The default value is ''. </li>

              <li>
                <a href="/content/api/java/com/gpudb/protocol/KillProcRequest.Options#CLEAR_EXECUTE_AT_STARTUP"><code>CLEAR\_EXECUTE\_AT\_STARTUP</code></a>: If <a href="/content/api/java/com/gpudb/protocol/KillProcRequest.Options#TRUE"><code>TRUE</code></a>, kill and remove the instance of the proc matching the auto-start run ID that was created to run when the database is started. The auto-start run ID was returned from <a href="#executeProc(java.lang.String,java.util.Map,java.util.Map,java.util.List,java.util.Map,java.util.List,java.util.Map)"><code>executeProc</code></a> and can be retrieved using <a href="#showProc(java.lang.String,java.util.Map)"><code>showProc</code></a>. Supported values:

                <ul>
                  <li><a href="/content/api/java/com/gpudb/protocol/KillProcRequest.Options#TRUE"><code>TRUE</code></a> </li>
                  <li><a href="/content/api/java/com/gpudb/protocol/KillProcRequest.Options#FALSE"><code>FALSE</code></a> </li>
                </ul>

                The default value is <a href="/content/api/java/com/gpudb/protocol/KillProcRequest.Options#FALSE"><code>FALSE</code></a>.
              </li>
            </ul>

            The default value is an empty <a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/Map.html" title="class or interface in java.util" className="external-link"><code>Map</code></a>.
          </div>

          <div className="dt">Returns:</div>
          <div className="dd"><a href="/content/api/java/com/gpudb/protocol/KillProcResponse" title="class in com.gpudb.protocol"><code>Response</code></a> object containing the results of the operation.</div>
          <div className="dt">Throws:</div>
          <div className="dd"><code><a href="/content/api/java/com/gpudb/GPUdbException" title="class in com.gpudb">GPUdbException</a></code> - if an error occurs during the operation.</div>
        </div>
      </div>
    </li>
  </ul>
</div>
