> ## 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-javadoc">
  <ul className="member-list">
    <li>
      <div className="section detail" id="dropSchema(com.gpudb.protocol.DropSchemaRequest)">
        <h3>dropSchema</h3>
        <div className="member-signature"><span className="modifiers">public</span> <span className="return-type"><a href="/content/api/java/com/gpudb/protocol/DropSchemaResponse" title="class in com.gpudb.protocol">DropSchemaResponse</a></span> <span className="element-name">dropSchema</span><wbr /><span className="parameters">(<a href="/content/api/java/com/gpudb/protocol/DropSchemaRequest" title="class in com.gpudb.protocol">DropSchemaRequest</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">Drops an existing SQL-style <a href="/content/concepts/schemas/" target="_top">schema</a>, specified in <a href="/content/api/java/com/gpudb/protocol/DropSchemaRequest#getSchemaName()"><code>schemaName</code></a>.</div>

        <div className="dl notes">
          <div className="dt">Parameters:</div>
          <div className="dd"><code>request</code> - <a href="/content/api/java/com/gpudb/protocol/DropSchemaRequest" 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/DropSchemaResponse" 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="dropSchema(java.lang.String,java.util.Map)">
        <h3>dropSchema</h3>
        <div className="member-signature"><span className="modifiers">public</span> <span className="return-type"><a href="/content/api/java/com/gpudb/protocol/DropSchemaResponse" title="class in com.gpudb.protocol">DropSchemaResponse</a></span> <span className="element-name">dropSchema</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> schemaName, <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">Drops an existing SQL-style <a href="/content/concepts/schemas/" target="_top">schema</a>, specified in <code>schemaName</code>.</div>

        <div className="dl notes">
          <div className="dt">Parameters:</div>
          <div className="dd"><code>schemaName</code> - Name of the schema to be dropped. Must be an existing schema.</div>

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

            <ul>
              <li>
                <a href="/content/api/java/com/gpudb/protocol/DropSchemaRequest.Options#NO_ERROR_IF_NOT_EXISTS"><code>NO\_ERROR\_IF\_NOT\_EXISTS</code></a>: If <a href="/content/api/java/com/gpudb/protocol/DropSchemaRequest.Options#TRUE"><code>TRUE</code></a> and if the schema specified in <code> schemaName</code> does not exist, no error is returned. If <a href="/content/api/java/com/gpudb/protocol/DropSchemaRequest.Options#FALSE"><code>FALSE</code></a> and if the schema specified in <code> schemaName</code> does not exist, then an error is returned. Supported values:

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

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

              <li>
                <a href="/content/api/java/com/gpudb/protocol/DropSchemaRequest.Options#CASCADE"><code>CASCADE</code></a>: If <a href="/content/api/java/com/gpudb/protocol/DropSchemaRequest.Options#TRUE"><code>TRUE</code></a>, all tables within the schema will be dropped. If <a href="/content/api/java/com/gpudb/protocol/DropSchemaRequest.Options#FALSE"><code>FALSE</code></a>, the schema will be dropped only if empty. Supported values:

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

                The default value is <a href="/content/api/java/com/gpudb/protocol/DropSchemaRequest.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/DropSchemaResponse" 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>
