> ## 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-doxygen">
  <div id="ac8fff6e61ada09d2fdb3bb336ccc321a" />

  <h2 className="memtitle"><span className="permalink"><a href="#ac8fff6e61ada09d2fdb3bb336ccc321a">◆ </a></span>killProc() <span className="overload">\[1/4]</span></h2>

  <div className="memitem">
    <div className="memproto">
      <table className="memname">
        <tr>
          <td className="memname"><a className="el" href="/content/api/cpp/structgpudb_1_1KillProcResponse">KillProcResponse</a> gpudb::GPUdb::killProc </td>
          <td>(</td>
          <td className="paramtype">const <a className="el" href="/content/api/cpp/structgpudb_1_1KillProcRequest">KillProcRequest</a> &</td>
          <td className="paramname"><span className="paramname"><span className="em">request\_</span></span></td>
          <td>)</td>
          <td> const</td>
        </tr>
      </table>
    </div>

    <div className="memdoc">
      <p>Kills a running proc instance. </p>

      <div className="dl params">
        <div className="dt">Parameters</div>

        <div className="dd">
          <table className="params">
            <tr>
              <td className="paramdir">\[in]</td>
              <td className="paramname">request\_</td>
              <td><a className="el" href="/content/api/cpp/structgpudb_1_1KillProcRequest">Request</a> object containing the parameters for the operation.</td>
            </tr>
          </table>
        </div>
      </div>

      <div className="dl section return">
        <div className="dt">Returns</div>
        <div className="dd"><a className="el" href="/content/api/cpp/structgpudb_1_1KillProcResponse">Response</a> object containing the result of the operation. </div>
      </div>
    </div>
  </div>

  <div id="a0ad300665d452250337bcac23674ca8c" />

  <h2 className="memtitle"><span className="permalink"><a href="#a0ad300665d452250337bcac23674ca8c">◆ </a></span>killProc() <span className="overload">\[2/4]</span></h2>

  <div className="memitem">
    <div className="memproto">
      <table className="memname">
        <tr>
          <td className="memname"><a className="el" href="/content/api/cpp/structgpudb_1_1KillProcResponse">KillProcResponse</a> & gpudb::GPUdb::killProc </td>
          <td>(</td>
          <td className="paramtype">const <a className="el" href="/content/api/cpp/structgpudb_1_1KillProcRequest">KillProcRequest</a> &</td>
          <td className="paramname"><span className="paramname"><span className="em">request\_</span></span>, </td>
        </tr>

        <tr>
          <td className="paramkey" />

          <td />

          <td className="paramtype"><a className="el" href="/content/api/cpp/structgpudb_1_1KillProcResponse">KillProcResponse</a> &</td>
          <td className="paramname"><span className="paramname"><span className="em">response\_</span></span> ) const</td>
        </tr>
      </table>
    </div>

    <div className="memdoc">
      <p>Kills a running proc instance. </p>

      <div className="dl params">
        <div className="dt">Parameters</div>

        <div className="dd">
          <table className="params">
            <tr>
              <td className="paramdir">\[in]</td>
              <td className="paramname">request\_</td>
              <td><a className="el" href="/content/api/cpp/structgpudb_1_1KillProcRequest">Request</a> object containing the parameters for the operation. </td>
            </tr>

            <tr>
              <td className="paramdir">\[out]</td>
              <td className="paramname">response\_</td>
              <td><a className="el" href="/content/api/cpp/structgpudb_1_1KillProcResponse">Response</a> object containing the results of the operation.</td>
            </tr>
          </table>
        </div>
      </div>

      <div className="dl section return">
        <div className="dt">Returns</div>
        <div className="dd"><a className="el" href="/content/api/cpp/structgpudb_1_1KillProcResponse">Response</a> object containing the result of the operation (initially passed in by reference). </div>
      </div>
    </div>
  </div>

  <div id="a8272ee33e4bfe2ef6c5d225a7f151ada" />

  <h2 className="memtitle"><span className="permalink"><a href="#a8272ee33e4bfe2ef6c5d225a7f151ada">◆ </a></span>killProc() <span className="overload">\[3/4]</span></h2>

  <div className="memitem">
    <div className="memproto">
      <table className="memname">
        <tr>
          <td className="memname"><a className="el" href="/content/api/cpp/structgpudb_1_1KillProcResponse">KillProcResponse</a> gpudb::GPUdb::killProc </td>
          <td>(</td>
          <td className="paramtype">const std::string &</td>
          <td className="paramname"><span className="paramname"><span className="em">runId</span></span>, </td>
        </tr>

        <tr>
          <td className="paramkey" />

          <td />

          <td className="paramtype">const std::map\< std::string, std::string > &</td>
          <td className="paramname"><span className="paramname"><span className="em">options</span></span> ) const</td>
        </tr>
      </table>
    </div>

    <div className="memdoc">
      <p>Kills a running proc instance. </p>

      <div className="dl params">
        <div className="dt">Parameters</div>

        <div className="dd">
          <table className="params">
            <tr>
              <td className="paramdir">\[in]</td>
              <td className="paramname">runId</td>
              <td>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 ''. </td>
            </tr>

            <tr>
              <td className="paramdir">\[in]</td>
              <td className="paramname">options</td>

              <td>
                Optional parameters.

                <ul>
                  <li> <a className="el" href="/content/api/cpp/namespacegpudb#aec0d2b5c75f858fa90d8935dcf288ac0">kill\_proc\_run\_tag</a>: If <span className="em arg">runId</span> is specified, kill the proc instance that has a matching run ID and a matching run tag that was provided to <a className="el" href="#a19f569cb61a53022021bbfd9e031468d">executeProc</a>. If <span className="em arg">runId</span> is not specified, kill the proc instance(s) where a matching run tag was provided to <a className="el" href="#a19f569cb61a53022021bbfd9e031468d">executeProc</a>. The default value is ''. </li>

                  <li>
                    <a className="el" href="/content/api/cpp/namespacegpudb#af2eb09468a7ca309a0d5e9a58e7f900c">kill\_proc\_clear\_execute\_at\_startup</a>: If <a className="el" href="/content/api/cpp/namespacegpudb#aa6b24f35474865925a838ba784a12015">true</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 className="el" href="#a19f569cb61a53022021bbfd9e031468d">executeProc</a> and can be retrieved using <a className="el" href="#a4ff6de0d6b70a356a1995b973c9811dc">showProc</a>. Supported values:

                    <ul>
                      <li> <a className="el" href="/content/api/cpp/namespacegpudb#aa6b24f35474865925a838ba784a12015">kill\_proc\_true</a> </li>
                      <li> <a className="el" href="/content/api/cpp/namespacegpudb#acaafc8026f131f4d72fe8c3a87e094a6">kill\_proc\_false</a> </li>
                    </ul>

                    The default value is <a className="el" href="/content/api/cpp/namespacegpudb#acaafc8026f131f4d72fe8c3a87e094a6">kill\_proc\_false</a>.
                  </li>
                </ul>

                The default value is an empty map.
              </td>
            </tr>
          </table>
        </div>
      </div>

      <div className="dl section return">
        <div className="dt">Returns</div>
        <div className="dd"><a className="el" href="/content/api/cpp/structgpudb_1_1KillProcResponse">Response</a> object containing the result of the operation. </div>
      </div>
    </div>
  </div>

  <div id="aa634787e5186e9266ac859a2ac344fcc" />

  <h2 className="memtitle"><span className="permalink"><a href="#aa634787e5186e9266ac859a2ac344fcc">◆ </a></span>killProc() <span className="overload">\[4/4]</span></h2>

  <div className="memitem">
    <div className="memproto">
      <table className="memname">
        <tr>
          <td className="memname"><a className="el" href="/content/api/cpp/structgpudb_1_1KillProcResponse">KillProcResponse</a> & gpudb::GPUdb::killProc </td>
          <td>(</td>
          <td className="paramtype">const std::string &</td>
          <td className="paramname"><span className="paramname"><span className="em">runId</span></span>, </td>
        </tr>

        <tr>
          <td className="paramkey" />

          <td />

          <td className="paramtype">const std::map\< std::string, std::string > &</td>
          <td className="paramname"><span className="paramname"><span className="em">options</span></span>, </td>
        </tr>

        <tr>
          <td className="paramkey" />

          <td />

          <td className="paramtype"><a className="el" href="/content/api/cpp/structgpudb_1_1KillProcResponse">KillProcResponse</a> &</td>
          <td className="paramname"><span className="paramname"><span className="em">response\_</span></span> ) const</td>
        </tr>
      </table>
    </div>

    <div className="memdoc">
      <p>Kills a running proc instance. </p>

      <div className="dl params">
        <div className="dt">Parameters</div>

        <div className="dd">
          <table className="params">
            <tr>
              <td className="paramdir">\[in]</td>
              <td className="paramname">runId</td>
              <td>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 ''. </td>
            </tr>

            <tr>
              <td className="paramdir">\[in]</td>
              <td className="paramname">options</td>

              <td>
                Optional parameters.

                <ul>
                  <li> <a className="el" href="/content/api/cpp/namespacegpudb#aec0d2b5c75f858fa90d8935dcf288ac0">kill\_proc\_run\_tag</a>: If <span className="em arg">runId</span> is specified, kill the proc instance that has a matching run ID and a matching run tag that was provided to <a className="el" href="#a19f569cb61a53022021bbfd9e031468d">executeProc</a>. If <span className="em arg">runId</span> is not specified, kill the proc instance(s) where a matching run tag was provided to <a className="el" href="#a19f569cb61a53022021bbfd9e031468d">executeProc</a>. The default value is ''. </li>

                  <li>
                    <a className="el" href="/content/api/cpp/namespacegpudb#af2eb09468a7ca309a0d5e9a58e7f900c">kill\_proc\_clear\_execute\_at\_startup</a>: If <a className="el" href="/content/api/cpp/namespacegpudb#aa6b24f35474865925a838ba784a12015">true</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 className="el" href="#a19f569cb61a53022021bbfd9e031468d">executeProc</a> and can be retrieved using <a className="el" href="#a4ff6de0d6b70a356a1995b973c9811dc">showProc</a>. Supported values:

                    <ul>
                      <li> <a className="el" href="/content/api/cpp/namespacegpudb#aa6b24f35474865925a838ba784a12015">kill\_proc\_true</a> </li>
                      <li> <a className="el" href="/content/api/cpp/namespacegpudb#acaafc8026f131f4d72fe8c3a87e094a6">kill\_proc\_false</a> </li>
                    </ul>

                    The default value is <a className="el" href="/content/api/cpp/namespacegpudb#acaafc8026f131f4d72fe8c3a87e094a6">kill\_proc\_false</a>.
                  </li>
                </ul>

                The default value is an empty map.
              </td>
            </tr>

            <tr>
              <td className="paramdir">\[out]</td>
              <td className="paramname">response\_</td>
              <td><a className="el" href="/content/api/cpp/structgpudb_1_1KillProcResponse">Response</a> object containing the results of the operation.</td>
            </tr>
          </table>
        </div>
      </div>

      <div className="dl section return">
        <div className="dt">Returns</div>
        <div className="dd"><a className="el" href="/content/api/cpp/structgpudb_1_1KillProcResponse">Response</a> object containing the result of the operation (initially passed in by reference). </div>
      </div>
    </div>
  </div>
</div>
