Skip to content

relationalai.app.drop_service()

Deprecated
drop_service()

Stops the RelationalAI (RAI) container service running on Snowpark Container Services and drops the service’s Snowflake warehouse and compute pool. Engine compute pools and existing RAI engines remain intact.

Requires the app_admin application role.

You can drop the service to reduce costs when you are not using the RAI Native App. To suspend CDC, delete all engines, and drop the service:

-- Suspend CDC
CALL relationalai.app.suspend_cdc();
-- List the engines
SELECT * FROM relationalai.api.engines;
-- For each engine name in the output of the above `SELECT` statement (if any),
-- fill in the engine name in the following command and run it
CALL relationalai.api.delete_engine('<engine_name>', TRUE);
-- Drop the service
CALL relationalai.app.drop_service();