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

# gpudb::DropSchemaRequest

> gpudb::DropSchemaRequest — Kinetica C++ API

<div className="kinetica-doxygen">
  <div className="contents">
    <p>A set of parameters for <a className="el" href="/content/api/cpp/classgpudb_1_1GPUdb#ac647bfdc553a47cc69938b7b174dc499">GPUdb::dropSchema</a>. <a href="#details">More...</a></p>
    <p><code>#include \<<a className="el" href="/content/api/cpp/drop__schema_8h_source">gpudb/protocol/drop\_schema.h</a>></code></p>

    <table className="memberdecls">
      <tr className="heading">
        <td colSpan="2">
          <h2 className="groupheader"> Public Member Functions</h2>
        </td>
      </tr>

      <tr className="memitem:a4187e710d92ceef5116761f6ce338a87" id="r_a4187e710d92ceef5116761f6ce338a87">
        <td className="memItemLeft" align="right" valign="top"> </td>
        <td className="memItemRight" valign="bottom"><a className="el" href="#a4187e710d92ceef5116761f6ce338a87">DropSchemaRequest</a> ()</td>
      </tr>

      <tr className="memdesc:a4187e710d92ceef5116761f6ce338a87">
        <td className="mdescLeft"> </td>
        <td className="mdescRight">Constructs a <a className="el" href="/content/api/cpp/structgpudb_1_1DropSchemaRequest" title="A set of parameters for GPUdb::dropSchema.">DropSchemaRequest</a> object with default parameters. <br /></td>
      </tr>

      <tr className="separator:a4187e710d92ceef5116761f6ce338a87">
        <td className="memSeparator" colSpan="2"> </td>
      </tr>

      <tr className="memitem:aca3eb0457d0681b6af0f585123f0dd0d" id="r_aca3eb0457d0681b6af0f585123f0dd0d">
        <td className="memItemLeft" align="right" valign="top"> </td>
        <td className="memItemRight" valign="bottom"><a className="el" href="#aca3eb0457d0681b6af0f585123f0dd0d">DropSchemaRequest</a> (const std::string \&schemaName\_, const std::map\< std::string, std::string > \&options\_)</td>
      </tr>

      <tr className="memdesc:aca3eb0457d0681b6af0f585123f0dd0d">
        <td className="mdescLeft"> </td>
        <td className="mdescRight">Constructs a <a className="el" href="/content/api/cpp/structgpudb_1_1DropSchemaRequest" title="A set of parameters for GPUdb::dropSchema.">DropSchemaRequest</a> object with the specified parameters. <br /></td>
      </tr>

      <tr className="separator:aca3eb0457d0681b6af0f585123f0dd0d">
        <td className="memSeparator" colSpan="2"> </td>
      </tr>
    </table>

    <table className="memberdecls">
      <tr className="heading">
        <td colSpan="2">
          <h2 className="groupheader"> Public Attributes</h2>
        </td>
      </tr>

      <tr className="memitem:a4ef1f491b078fbb00d81ac38593cb57d" id="r_a4ef1f491b078fbb00d81ac38593cb57d">
        <td className="memItemLeft" align="right" valign="top">std::string </td>
        <td className="memItemRight" valign="bottom"><a className="el" href="#a4ef1f491b078fbb00d81ac38593cb57d">schemaName</a></td>
      </tr>

      <tr className="memdesc:a4ef1f491b078fbb00d81ac38593cb57d">
        <td className="mdescLeft"> </td>
        <td className="mdescRight">Name of the schema to be dropped. <br /></td>
      </tr>

      <tr className="separator:a4ef1f491b078fbb00d81ac38593cb57d">
        <td className="memSeparator" colSpan="2"> </td>
      </tr>

      <tr className="memitem:a277f2595f975a00aa187afea67fa6861" id="r_a277f2595f975a00aa187afea67fa6861">
        <td className="memItemLeft" align="right" valign="top">std::map\< std::string, std::string > </td>
        <td className="memItemRight" valign="bottom"><a className="el" href="#a277f2595f975a00aa187afea67fa6861">options</a></td>
      </tr>

      <tr className="memdesc:a277f2595f975a00aa187afea67fa6861">
        <td className="mdescLeft"> </td>
        <td className="mdescRight">Optional parameters. <br /></td>
      </tr>

      <tr className="separator:a277f2595f975a00aa187afea67fa6861">
        <td className="memSeparator" colSpan="2"> </td>
      </tr>
    </table>

    <h2 className="groupheader">Detailed Description</h2>

    <div className="textblock">
      <p>A set of parameters for <a className="el" href="/content/api/cpp/classgpudb_1_1GPUdb#ac647bfdc553a47cc69938b7b174dc499">GPUdb::dropSchema</a>. </p>
      <p>Drops an existing SQL-style <a href="/content/concepts/schemas/" target="_top">schema</a>, specified in <a className="el" href="#a4ef1f491b078fbb00d81ac38593cb57d">schemaName</a>. </p>
      <p className="definition">Definition at line <a className="el" href="/content/api/cpp/drop__schema_8h_source#l00018">18</a> of file <a className="el" href="/content/api/cpp/drop__schema_8h_source">drop\_schema.h</a>.</p>
    </div>

    <h2 className="groupheader">Constructor & Destructor Documentation</h2>
    <h2 className="memtitle"><span className="permalink"><a href="#a4187e710d92ceef5116761f6ce338a87">◆ </a></span>DropSchemaRequest() <span className="overload">\[1/2]</span></h2>

    <div className="memitem">
      <div className="memproto">
        <table className="mlabels">
          <tr>
            <td className="mlabels-left">
              <table className="memname">
                <tr>
                  <td className="memname">gpudb::DropSchemaRequest::DropSchemaRequest </td>
                  <td>(</td>

                  <td className="paramname">
                    <span className="paramname">
                      <span className="em" />
                    </span>
                  </td>

                  <td>)</td>

                  <td />
                </tr>
              </table>
            </td>

            <td className="mlabels-right"> <span className="mlabels"><span className="mlabel inline">inline</span></span> </td>
          </tr>
        </table>
      </div>

      <div className="memdoc">
        <p>Constructs a <a className="el" href="/content/api/cpp/structgpudb_1_1DropSchemaRequest" title="A set of parameters for GPUdb::dropSchema.">DropSchemaRequest</a> object with default parameters. </p>
        <p className="definition">Definition at line <a className="el" href="/content/api/cpp/drop__schema_8h_source#l00023">23</a> of file <a className="el" href="/content/api/cpp/drop__schema_8h_source">drop\_schema.h</a>.</p>
      </div>
    </div>

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

    <div className="memitem">
      <div className="memproto">
        <table className="mlabels">
          <tr>
            <td className="mlabels-left">
              <table className="memname">
                <tr>
                  <td className="memname">gpudb::DropSchemaRequest::DropSchemaRequest </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>
              </table>
            </td>

            <td className="mlabels-right"> <span className="mlabels"><span className="mlabel inline">inline</span></span> </td>
          </tr>
        </table>
      </div>

      <div className="memdoc">
        <p>Constructs a <a className="el" href="/content/api/cpp/structgpudb_1_1DropSchemaRequest" title="A set of parameters for GPUdb::dropSchema.">DropSchemaRequest</a> object with the specified parameters. </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>

        <p className="definition">Definition at line <a className="el" href="/content/api/cpp/drop__schema_8h_source#l00077">77</a> of file <a className="el" href="/content/api/cpp/drop__schema_8h_source">drop\_schema.h</a>.</p>
      </div>
    </div>

    <h2 className="groupheader">Member Data Documentation</h2>
    <h2 className="memtitle"><span className="permalink"><a href="#a277f2595f975a00aa187afea67fa6861">◆ </a></span>options</h2>

    <div className="memitem">
      <div className="memproto">
        <table className="memname">
          <tr>
            <td className="memname">std::map\<std::string, std::string> gpudb::DropSchemaRequest::options</td>
          </tr>
        </table>
      </div>

      <div className="memdoc">
        <p>Optional parameters. </p>

        <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 <a className="el" href="#a4ef1f491b078fbb00d81ac38593cb57d">schemaName</a> 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 <a className="el" href="#a4ef1f491b078fbb00d81ac38593cb57d">schemaName</a> 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>

        <p>The default value is an empty map. </p>
        <p className="definition">Definition at line <a className="el" href="/content/api/cpp/drop__schema_8h_source#l00119">119</a> of file <a className="el" href="/content/api/cpp/drop__schema_8h_source">drop\_schema.h</a>.</p>
      </div>
    </div>

    <h2 className="memtitle"><span className="permalink"><a href="#a4ef1f491b078fbb00d81ac38593cb57d">◆ </a></span>schemaName</h2>

    <div className="memitem">
      <div className="memproto">
        <table className="memname">
          <tr>
            <td className="memname">std::string gpudb::DropSchemaRequest::schemaName</td>
          </tr>
        </table>
      </div>

      <div className="memdoc">
        <p>Name of the schema to be dropped. </p>
        <p>Must be an existing schema. </p>
        <p className="definition">Definition at line <a className="el" href="/content/api/cpp/drop__schema_8h_source#l00086">86</a> of file <a className="el" href="/content/api/cpp/drop__schema_8h_source">drop\_schema.h</a>.</p>
      </div>
    </div>

    <hr />

    The documentation for this struct was generated from the following file:

    <ul>
      <li>gpudb/protocol/<a className="el" href="/content/api/cpp/drop__schema_8h_source">drop\_schema.h</a></li>
    </ul>
  </div>
</div>
