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

# drop_schema

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/generated/drop_schema.rs#L20-L26)
pub async fn [drop\_schema](https://docs.kinetica.com/content/api/rust/gpudb/struct.Kinetica/drop-schema.md#method.drop_schema)( \&self, schema\_name: [String](https://doc.rust-lang.org/1.98.1/alloc/string/struct.String.html), ) -> [Result](https://doc.rust-lang.org/1.98.1/core/result/enum.Result.html)\<[DropSchemaResponse](https://docs.kinetica.com/content/api/rust/generated/api/struct.DropSchemaResponse.md), [KineticaError](https://docs.kinetica.com/content/api/rust/errors/enum.KineticaError.md)>

Drop an existing SQL-style schema.Drops an existing SQL-style schema, specified in `schema_name`.

##### Arguments

<ul>
  <li>`schema_name` - Name of the schema to be dropped. Must be an existing schema.</li>
</ul>

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/generated/drop_schema.rs#L38-L54)
pub async fn [drop\_schema\_with\_opts](https://docs.kinetica.com/content/api/rust/gpudb/struct.Kinetica/drop-schema.md#method.drop_schema_with_opts)( \&self, schema\_name: [String](https://doc.rust-lang.org/1.98.1/alloc/string/struct.String.html), options: [DropSchemaRequestOptions](https://docs.kinetica.com/content/api/rust/generated/api/struct.DropSchemaRequestOptions.md), ) -> [Result](https://doc.rust-lang.org/1.98.1/core/result/enum.Result.html)\<[DropSchemaResponse](https://docs.kinetica.com/content/api/rust/generated/api/struct.DropSchemaResponse.md), [KineticaError](https://docs.kinetica.com/content/api/rust/errors/enum.KineticaError.md)>

Drop an existing SQL-style schema.Drops an existing SQL-style schema, specified in `schema_name`.

##### Arguments

<ul>
  <li>`schema_name` - Name of the schema to be dropped. Must be an existing schema.</li>
  <li>`options` - The optional parameters; any left unset take the server’s defaults.</li>
</ul>

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/generated/drop_schema.rs#L57-L68)
pub async fn [drop\_schema\_raw](https://docs.kinetica.com/content/api/rust/gpudb/struct.Kinetica/drop-schema.md#method.drop_schema_raw)( \&self, request: &[DropSchemaRequest](https://docs.kinetica.com/content/api/rust/generated/api/struct.DropSchemaRequest.md), ) -> [Result](https://doc.rust-lang.org/1.98.1/core/result/enum.Result.html)\<[DropSchemaResponse](https://docs.kinetica.com/content/api/rust/generated/api/struct.DropSchemaResponse.md), [KineticaError](https://docs.kinetica.com/content/api/rust/errors/enum.KineticaError.md)>

Sends a pre-built [`DropSchemaRequest`](https://docs.kinetica.com/content/api/rust/generated/api/struct.DropSchemaRequest) to the `/drop/schema` endpoint.

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/generated/drop_schema.rs#L72-L84)
pub async fn [drop\_schema\_from\_url](https://docs.kinetica.com/content/api/rust/gpudb/struct.Kinetica/drop-schema.md#method.drop_schema_from_url)( \&self, url: &[str](https://doc.rust-lang.org/1.98.1/std/primitive.str.html), request: &[DropSchemaRequest](https://docs.kinetica.com/content/api/rust/generated/api/struct.DropSchemaRequest.md), ) -> [Result](https://doc.rust-lang.org/1.98.1/core/result/enum.Result.html)\<[DropSchemaResponse](https://docs.kinetica.com/content/api/rust/generated/api/struct.DropSchemaResponse.md), [KineticaError](https://docs.kinetica.com/content/api/rust/errors/enum.KineticaError.md)>

Sends a pre-built [`DropSchemaRequest`](https://docs.kinetica.com/content/api/rust/generated/api/struct.DropSchemaRequest) to a specific worker URL, bypassing HA head-node selection. Used for multi-head access.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.