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

# dropSchema

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

  <h2 className="memtitle"><span className="permalink"><a href="#ac647bfdc553a47cc69938b7b174dc499">◆ </a></span>dropSchema() <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_1DropSchemaResponse">DropSchemaResponse</a> gpudb::GPUdb::dropSchema </td>
          <td>(</td>
          <td className="paramtype">const <a className="el" href="/content/api/cpp/structgpudb_1_1DropSchemaRequest">DropSchemaRequest</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>Drops an existing SQL-style <a href="/content/concepts/schemas/" target="_top">schema</a>, specified in <a className="el" href="/content/api/cpp/structgpudb_1_1DropSchemaRequest#a4ef1f491b078fbb00d81ac38593cb57d">schemaName</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_1DropSchemaRequest">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_1DropSchemaResponse">Response</a> object containing the result of the operation. </div>
      </div>
    </div>
  </div>

  <div id="a87cbc225b0173798cdbc758079902d98" />

  <h2 className="memtitle"><span className="permalink"><a href="#a87cbc225b0173798cdbc758079902d98">◆ </a></span>dropSchema() <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_1DropSchemaResponse">DropSchemaResponse</a> & gpudb::GPUdb::dropSchema </td>
          <td>(</td>
          <td className="paramtype">const <a className="el" href="/content/api/cpp/structgpudb_1_1DropSchemaRequest">DropSchemaRequest</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_1DropSchemaResponse">DropSchemaResponse</a> &</td>
          <td className="paramname"><span className="paramname"><span className="em">response\_</span></span> ) const</td>
        </tr>
      </table>
    </div>

    <div className="memdoc">
      <p>Drops an existing SQL-style <a href="/content/concepts/schemas/" target="_top">schema</a>, specified in <a className="el" href="/content/api/cpp/structgpudb_1_1DropSchemaRequest#a4ef1f491b078fbb00d81ac38593cb57d">schemaName</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_1DropSchemaRequest">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_1DropSchemaResponse">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_1DropSchemaResponse">Response</a> object containing the result of the operation (initially passed in by reference). </div>
      </div>
    </div>
  </div>

  <div id="a7e22b839836772439bc1acb7215ce084" />

  <h2 className="memtitle"><span className="permalink"><a href="#a7e22b839836772439bc1acb7215ce084">◆ </a></span>dropSchema() <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_1DropSchemaResponse">DropSchemaResponse</a> gpudb::GPUdb::dropSchema </td>
          <td>(</td>
          <td className="paramtype">const std::string &</td>
          <td className="paramname"><span className="paramname"><span className="em">schemaName</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>Drops an existing SQL-style <a href="/content/concepts/schemas/" target="_top">schema</a>, specified in <span className="em arg">schemaName</span>. </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">schemaName</td>
              <td>Name of the schema to be dropped. Must be an existing schema. </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#adf5956fd1c22b2e02e460e8e3421f581">drop\_schema\_no\_error\_if\_not\_exists</a>: If <a className="el" href="/content/api/cpp/namespacegpudb#afa987d236635a0c5321df7de731f9220">true</a> and if the schema specified in <span className="em arg">schemaName</span> does not exist, no error is returned. If <a className="el" href="/content/api/cpp/namespacegpudb#a107e693285fdcd598dbc2fd9b82d2795">false</a> and if the schema specified in <span className="em arg">schemaName</span> does not exist, then an error is returned. Supported values:

                    <ul>
                      <li> <a className="el" href="/content/api/cpp/namespacegpudb#afa987d236635a0c5321df7de731f9220">drop\_schema\_true</a> </li>
                      <li> <a className="el" href="/content/api/cpp/namespacegpudb#a107e693285fdcd598dbc2fd9b82d2795">drop\_schema\_false</a> </li>
                    </ul>

                    The default value is <a className="el" href="/content/api/cpp/namespacegpudb#a107e693285fdcd598dbc2fd9b82d2795">drop\_schema\_false</a>.
                  </li>

                  <li>
                    <a className="el" href="/content/api/cpp/namespacegpudb#a83a9dde3ae0852098ace8df2f28cd728">drop\_schema\_cascade</a>: If <a className="el" href="/content/api/cpp/namespacegpudb#afa987d236635a0c5321df7de731f9220">true</a>, all tables within the schema will be dropped. If <a className="el" href="/content/api/cpp/namespacegpudb#a107e693285fdcd598dbc2fd9b82d2795">false</a>, the schema will be dropped only if empty. Supported values:

                    <ul>
                      <li> <a className="el" href="/content/api/cpp/namespacegpudb#afa987d236635a0c5321df7de731f9220">drop\_schema\_true</a> </li>
                      <li> <a className="el" href="/content/api/cpp/namespacegpudb#a107e693285fdcd598dbc2fd9b82d2795">drop\_schema\_false</a> </li>
                    </ul>

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

  <div id="aa3247798804eafcb3954e99f32a2b706" />

  <h2 className="memtitle"><span className="permalink"><a href="#aa3247798804eafcb3954e99f32a2b706">◆ </a></span>dropSchema() <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_1DropSchemaResponse">DropSchemaResponse</a> & gpudb::GPUdb::dropSchema </td>
          <td>(</td>
          <td className="paramtype">const std::string &</td>
          <td className="paramname"><span className="paramname"><span className="em">schemaName</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_1DropSchemaResponse">DropSchemaResponse</a> &</td>
          <td className="paramname"><span className="paramname"><span className="em">response\_</span></span> ) const</td>
        </tr>
      </table>
    </div>

    <div className="memdoc">
      <p>Drops an existing SQL-style <a href="/content/concepts/schemas/" target="_top">schema</a>, specified in <span className="em arg">schemaName</span>. </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">schemaName</td>
              <td>Name of the schema to be dropped. Must be an existing schema. </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#adf5956fd1c22b2e02e460e8e3421f581">drop\_schema\_no\_error\_if\_not\_exists</a>: If <a className="el" href="/content/api/cpp/namespacegpudb#afa987d236635a0c5321df7de731f9220">true</a> and if the schema specified in <span className="em arg">schemaName</span> does not exist, no error is returned. If <a className="el" href="/content/api/cpp/namespacegpudb#a107e693285fdcd598dbc2fd9b82d2795">false</a> and if the schema specified in <span className="em arg">schemaName</span> does not exist, then an error is returned. Supported values:

                    <ul>
                      <li> <a className="el" href="/content/api/cpp/namespacegpudb#afa987d236635a0c5321df7de731f9220">drop\_schema\_true</a> </li>
                      <li> <a className="el" href="/content/api/cpp/namespacegpudb#a107e693285fdcd598dbc2fd9b82d2795">drop\_schema\_false</a> </li>
                    </ul>

                    The default value is <a className="el" href="/content/api/cpp/namespacegpudb#a107e693285fdcd598dbc2fd9b82d2795">drop\_schema\_false</a>.
                  </li>

                  <li>
                    <a className="el" href="/content/api/cpp/namespacegpudb#a83a9dde3ae0852098ace8df2f28cd728">drop\_schema\_cascade</a>: If <a className="el" href="/content/api/cpp/namespacegpudb#afa987d236635a0c5321df7de731f9220">true</a>, all tables within the schema will be dropped. If <a className="el" href="/content/api/cpp/namespacegpudb#a107e693285fdcd598dbc2fd9b82d2795">false</a>, the schema will be dropped only if empty. Supported values:

                    <ul>
                      <li> <a className="el" href="/content/api/cpp/namespacegpudb#afa987d236635a0c5321df7de731f9220">drop\_schema\_true</a> </li>
                      <li> <a className="el" href="/content/api/cpp/namespacegpudb#a107e693285fdcd598dbc2fd9b82d2795">drop\_schema\_false</a> </li>
                    </ul>

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