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.
Example
Section titled “Example”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 CDCCALL relationalai.app.suspend_cdc();
-- List the enginesSELECT * 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 itCALL relationalai.api.delete_engine('<engine_name>', TRUE);
-- Drop the serviceCALL relationalai.app.drop_service();