> ## 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.

# deleteDirectory

<div className="kinetica-doxygen">
  <div id="afe45987d438414b862ff310e0232e83e" />

  <h2 className="memtitle"><span className="permalink"><a href="#afe45987d438414b862ff310e0232e83e">◆ </a></span>deleteDirectory() <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_1DeleteDirectoryResponse">DeleteDirectoryResponse</a> gpudb::GPUdb::deleteDirectory </td>
          <td>(</td>
          <td className="paramtype">const <a className="el" href="/content/api/cpp/structgpudb_1_1DeleteDirectoryRequest">DeleteDirectoryRequest</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>Deletes a directory from <a href="/content/tools/kifs/" target="_top">KiFS</a>. </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_1DeleteDirectoryRequest">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_1DeleteDirectoryResponse">Response</a> object containing the result of the operation. </div>
      </div>
    </div>
  </div>

  <div id="ad4386f3a6f03bc6a845ea8296303d10a" />

  <h2 className="memtitle"><span className="permalink"><a href="#ad4386f3a6f03bc6a845ea8296303d10a">◆ </a></span>deleteDirectory() <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_1DeleteDirectoryResponse">DeleteDirectoryResponse</a> & gpudb::GPUdb::deleteDirectory </td>
          <td>(</td>
          <td className="paramtype">const <a className="el" href="/content/api/cpp/structgpudb_1_1DeleteDirectoryRequest">DeleteDirectoryRequest</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_1DeleteDirectoryResponse">DeleteDirectoryResponse</a> &</td>
          <td className="paramname"><span className="paramname"><span className="em">response\_</span></span> ) const</td>
        </tr>
      </table>
    </div>

    <div className="memdoc">
      <p>Deletes a directory from <a href="/content/tools/kifs/" target="_top">KiFS</a>. </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_1DeleteDirectoryRequest">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_1DeleteDirectoryResponse">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_1DeleteDirectoryResponse">Response</a> object containing the result of the operation (initially passed in by reference). </div>
      </div>
    </div>
  </div>

  <div id="a95029975ac7617f02a217e6a1303a743" />

  <h2 className="memtitle"><span className="permalink"><a href="#a95029975ac7617f02a217e6a1303a743">◆ </a></span>deleteDirectory() <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_1DeleteDirectoryResponse">DeleteDirectoryResponse</a> gpudb::GPUdb::deleteDirectory </td>
          <td>(</td>
          <td className="paramtype">const std::string &</td>
          <td className="paramname"><span className="paramname"><span className="em">directoryName</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>Deletes a directory from <a href="/content/tools/kifs/" target="_top">KiFS</a>. </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">directoryName</td>
              <td>Name of the directory in KiFS to be deleted. The directory must contain no files, unless <a className="el" href="/content/api/cpp/namespacegpudb#ac25d5650f68f2b9b33931f966c49555f">recursive</a> is <a className="el" href="/content/api/cpp/namespacegpudb#a620d2b4ef97df73c6d9e31e219f1ed42">true</a>. </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#ac25d5650f68f2b9b33931f966c49555f">delete\_directory\_recursive</a>: If <a className="el" href="/content/api/cpp/namespacegpudb#a620d2b4ef97df73c6d9e31e219f1ed42">true</a>, will delete directory and all files residing in it. If false, directory must be empty for deletion. Supported values:

                    <ul>
                      <li> <a className="el" href="/content/api/cpp/namespacegpudb#a620d2b4ef97df73c6d9e31e219f1ed42">delete\_directory\_true</a> </li>
                      <li> <a className="el" href="/content/api/cpp/namespacegpudb#af326a5e14f6a21cfa77425ee79127247">delete\_directory\_false</a> </li>
                    </ul>

                    The default value is <a className="el" href="/content/api/cpp/namespacegpudb#af326a5e14f6a21cfa77425ee79127247">delete\_directory\_false</a>.
                  </li>

                  <li>
                    <a className="el" href="/content/api/cpp/namespacegpudb#ac97ecd16041fcdea66f3e53f12c6553c">delete\_directory\_no\_error\_if\_not\_exists</a>: If <a className="el" href="/content/api/cpp/namespacegpudb#a620d2b4ef97df73c6d9e31e219f1ed42">true</a>, no error is returned if specified directory does not exist. Supported values:

                    <ul>
                      <li> <a className="el" href="/content/api/cpp/namespacegpudb#a620d2b4ef97df73c6d9e31e219f1ed42">delete\_directory\_true</a> </li>
                      <li> <a className="el" href="/content/api/cpp/namespacegpudb#af326a5e14f6a21cfa77425ee79127247">delete\_directory\_false</a> </li>
                    </ul>

                    The default value is <a className="el" href="/content/api/cpp/namespacegpudb#af326a5e14f6a21cfa77425ee79127247">delete\_directory\_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_1DeleteDirectoryResponse">Response</a> object containing the result of the operation. </div>
      </div>
    </div>
  </div>

  <div id="a8f2c1ddfb5625eedbee937a15e8041af" />

  <h2 className="memtitle"><span className="permalink"><a href="#a8f2c1ddfb5625eedbee937a15e8041af">◆ </a></span>deleteDirectory() <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_1DeleteDirectoryResponse">DeleteDirectoryResponse</a> & gpudb::GPUdb::deleteDirectory </td>
          <td>(</td>
          <td className="paramtype">const std::string &</td>
          <td className="paramname"><span className="paramname"><span className="em">directoryName</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_1DeleteDirectoryResponse">DeleteDirectoryResponse</a> &</td>
          <td className="paramname"><span className="paramname"><span className="em">response\_</span></span> ) const</td>
        </tr>
      </table>
    </div>

    <div className="memdoc">
      <p>Deletes a directory from <a href="/content/tools/kifs/" target="_top">KiFS</a>. </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">directoryName</td>
              <td>Name of the directory in KiFS to be deleted. The directory must contain no files, unless <a className="el" href="/content/api/cpp/namespacegpudb#ac25d5650f68f2b9b33931f966c49555f">recursive</a> is <a className="el" href="/content/api/cpp/namespacegpudb#a620d2b4ef97df73c6d9e31e219f1ed42">true</a>. </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#ac25d5650f68f2b9b33931f966c49555f">delete\_directory\_recursive</a>: If <a className="el" href="/content/api/cpp/namespacegpudb#a620d2b4ef97df73c6d9e31e219f1ed42">true</a>, will delete directory and all files residing in it. If false, directory must be empty for deletion. Supported values:

                    <ul>
                      <li> <a className="el" href="/content/api/cpp/namespacegpudb#a620d2b4ef97df73c6d9e31e219f1ed42">delete\_directory\_true</a> </li>
                      <li> <a className="el" href="/content/api/cpp/namespacegpudb#af326a5e14f6a21cfa77425ee79127247">delete\_directory\_false</a> </li>
                    </ul>

                    The default value is <a className="el" href="/content/api/cpp/namespacegpudb#af326a5e14f6a21cfa77425ee79127247">delete\_directory\_false</a>.
                  </li>

                  <li>
                    <a className="el" href="/content/api/cpp/namespacegpudb#ac97ecd16041fcdea66f3e53f12c6553c">delete\_directory\_no\_error\_if\_not\_exists</a>: If <a className="el" href="/content/api/cpp/namespacegpudb#a620d2b4ef97df73c6d9e31e219f1ed42">true</a>, no error is returned if specified directory does not exist. Supported values:

                    <ul>
                      <li> <a className="el" href="/content/api/cpp/namespacegpudb#a620d2b4ef97df73c6d9e31e219f1ed42">delete\_directory\_true</a> </li>
                      <li> <a className="el" href="/content/api/cpp/namespacegpudb#af326a5e14f6a21cfa77425ee79127247">delete\_directory\_false</a> </li>
                    </ul>

                    The default value is <a className="el" href="/content/api/cpp/namespacegpudb#af326a5e14f6a21cfa77425ee79127247">delete\_directory\_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_1DeleteDirectoryResponse">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_1DeleteDirectoryResponse">Response</a> object containing the result of the operation (initially passed in by reference). </div>
      </div>
    </div>
  </div>
</div>
