delete_schema()#

relationalai.api
delete_schema(<schema_name>)

Deletes a specified RelationalAI (RAI) schema within the RAI Native App for Snowflake. Ensure the schema is no longer needed before deletion, as this action cannot be undone. Requires the schema_admin application role.

Parameters#

NameTypeDescription
<schema_name>STRINGThe name of the schema to delete (case-sensitive).

Example#

Use delete_schema() to delete an existing RAI schema. Ensure that the schema is not actively in use and that any necessary data has been backed up.

For example, to delete a schema named my_rai_schema:

CALL relationalai.api.delete_schema('my_rai_schema');

See Also#