Scale the app down to zero replicas.This stops all running workers while preserving the app configuration.
The app can be scaled back up by sending traffic to the public URL
(if autoscaling is configured) or by redeploying.Examples:
# Scale down to save resourcesdeployed.scale_to_zero()
Was this page helpful?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Anaconda","description":"Guides, tutorials, and reference material for Anaconda's Python, data science, and AI tools","colors":{"primary":"#1d6cf7","light":"#1d6cf7","dark":"#96f778"},"logo":{"light":"https://mintcdn.com/anaconda-29683c67/s-9WR15r5rZoaPqb/logo/light.svg?fit=max\u0026auto=format\u0026n=s-9WR15r5rZoaPqb\u0026q=85\u0026s=5996719b8530aaf065dc1ee1f39b2e67","dark":"https://mintcdn.com/anaconda-29683c67/s-9WR15r5rZoaPqb/logo/dark.svg?fit=max\u0026auto=format\u0026n=s-9WR15r5rZoaPqb\u0026q=85\u0026s=db482b1eac6af589d234160a76de3400","href":"https://www.anaconda.com/docs/main"},"favicon":"https://mintcdn.com/anaconda-29683c67/p8JNFuYYvTL8gfpM/favicon.png?fit=max\u0026auto=format\u0026n=p8JNFuYYvTL8gfpM\u0026q=85\u0026s=51a585758330bbe8f1ea032113854252","api":{"playground":{"display":"simple"}},"background":{"color":{"light":"#f4f5f8","dark":"#10121a"}},"navbar":{},"footer":{"socials":{"linkedin":"https://www.linkedin.com/company/anacondainc","github":"https://github.com/ContinuumIO","youtube":"https://www.youtube.com/c/ContinuumIo"},"links":[{"header":"Company","items":[{"label":"Anaconda Newsletter","href":"https://www.anaconda.com/newsletter"}]}]},"seo":{"metatags":{"canonical":"https://www.anaconda.com/docs"}},"styling":{"eyebrows":"breadcrumbs","latex":false},"integrations":{"ga4":{"measurementId":"G-VQTY6YKM6J"},"heap":{"appId":"758475466"}},"contextual":{"options":["claude","chatgpt","perplexity","cursor","vscode","add-mcp","copy"],"display":"header"},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"anaconda-29683c67","hasAudioNarration":false,"actualSubdomain":"anaconda-29683c67","customDomains":["anaconda.com"],"gitSource":{"type":"github","owner":"anaconda","repo":"documentation","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":true,"contextualFeedback":{"allowEmail":true,"emailDisclaimer":"Your email will only be used to follow up on this feedback."}},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"REMOVE_BRANDING":{"status":"ENABLED"},"CONTEXTUAL_FEEDBACK":{"status":"ENABLED"},"CODE_SNIPPET_FEEDBACK":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6aee4d21425b90b39aa20edc","clientVersion":"0.0.4087","searchFilterCounts":[{"language":"default","tag":"Data Science \u0026 AI Workbench","count":240},{"language":"default","tag":"Anaconda Platform","count":151},{"language":"default","tag":"Package Security Manager","count":128},{"language":"default","tag":"Anaconda CLI","count":112},{"language":"default","tag":"Guides","count":105},{"language":"default","tag":"Anaconda CLI \u0026 MCP","count":104},{"language":"default","tag":"Plugins","count":93},{"language":"default","tag":"Commands","count":91},{"language":"default","tag":"Anaconda Desktop","count":86},{"language":"default","tag":"Platform Guides","count":86}],"searchSettings":{"isFiltersEnabled":true}},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":true,"enableContextualStarterQuestions":true,"deflection":{"enabled":true,"email":"support@anaconda.com"}},"basePath":"/docs","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"comment-mode","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"custom.css","href":"/docs/_mintlify/custom/anaconda-29683c67/d510a3fe27570495/custom.css"}],"page":{"pagePath":"platform/guides/inference/python-api/deployed-app-scale-to-zero","slug":"/platform/guides/inference/python-api/deployed-app-scale-to-zero","pageMetadata":{"title":"DeployedApp.scale_to_zero","sidebarTitle":".scale_to_zero","keywords":["platform","deployment","python","api"],"description":null,"href":"/platform/guides/inference/python-api/deployed-app-scale-to-zero"},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,..._provideComponents(),...props.components},{CodeBlock}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);return _jsxs(_Fragment,{children:[_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`1`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`DeployedApp.scale_to_zero()`})}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Scale the app down to zero replicas.`}),`\n`,_jsx(_components.p,{children:`This stops all running workers while preserving the app configuration.\nThe app can be scaled back up by sending traffic to the public URL\n(if autoscaling is configured) or by redeploying.`}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Examples:`})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Scale down to save resources`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`deployed.scale_to_zero()`})}),`\n`]})})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"DeployedApp.scale_to_zero","sidebarTitle":".scale_to_zero","keywords":["platform","deployment","python","api"],"description":null,"href":"/platform/guides/inference/python-api/deployed-app-scale-to-zero"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/docs/_mintlify/custom/anaconda-29683c67/b738e1eb47e9934c/_transcend.js","/docs/_mintlify/custom/anaconda-29683c67/3ca111da84ffed5d/docs-dropdown-tooltip.js","/docs/_mintlify/custom/anaconda-29683c67/a3d1c2dd97aa6593/toc-indicator.js"],"subdomain":"anaconda-29683c67","siteName":"Anaconda","title":"DeployedApp.scale_to_zero - Anaconda","contextualStarterQuestions":[{"_id":"6aee470b767a2a364208581d","deploymentId":"6781700c5f1e7d2ac00fcc4a","questionText":"What happens to app config?","status":"active","generatedBy":"contextual","path":"platform/guides/inference/python-api/deployed-app-scale-to-zero","createdAt":"2026-11-06T21:30:51.265Z","updatedAt":"2026-11-06T21:30:51.265Z","__v":0},{"_id":"6aee470b767a2a364208581e","deploymentId":"6781700c5f1e7d2ac00fcc4a","questionText":"Can I scale back up later?","status":"active","generatedBy":"contextual","path":"platform/guides/inference/python-api/deployed-app-scale-to-zero","createdAt":"2026-11-06T21:30:51.265Z","updatedAt":"2026-11-06T21:30:51.265Z","__v":0},{"_id":"6aee470b767a2a364208581c","deploymentId":"6781700c5f1e7d2ac00fcc4a","questionText":"How do I scale down to zero?","status":"active","generatedBy":"contextual","path":"platform/guides/inference/python-api/deployed-app-scale-to-zero","createdAt":"2026-11-06T21:30:51.265Z","updatedAt":"2026-11-06T21:30:51.265Z","__v":0}],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-06T21:28:03.192Z","originalFileLocation":"platform/guides/inference/python-api/deployed-app-scale-to-zero.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"application-name\" content=\"Anaconda\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/anaconda-29683c67/Q6mS5k5M0lNdBscF/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/docs/mintlify-assets/_mintlify/favicons/anaconda-29683c67/Q6mS5k5M0lNdBscF/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/anaconda-29683c67/Q6mS5k5M0lNdBscF/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/anaconda-29683c67/Q6mS5k5M0lNdBscF/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/anaconda-29683c67/Q6mS5k5M0lNdBscF/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/anaconda-29683c67/Q6mS5k5M0lNdBscF/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/anaconda-29683c67/Q6mS5k5M0lNdBscF/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/anaconda-29683c67/Q6mS5k5M0lNdBscF/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/anaconda-29683c67/Q6mS5k5M0lNdBscF/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"DeployedApp.scale_to_zero - Anaconda\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Anaconda\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://www.anaconda.com/docs/platform/guides/inference/python-api/deployed-app-scale-to-zero\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://anaconda-29683c67.mintlify.site/docs/_mintlify/api/og/v2?division=DeployedApp\u0026amp;title=DeployedApp.scale_to_zero\u0026amp;theme=a631e829865976b88c6af112\u0026amp;signature=b467146af7a3803c8d5d28fb51aa2f666b4a20b874040cb5550cb8f063462490\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"DeployedApp.scale_to_zero - Anaconda\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://anaconda-29683c67.mintlify.site/docs/_mintlify/api/og/v2?division=DeployedApp\u0026amp;title=DeployedApp.scale_to_zero\u0026amp;theme=a631e829865976b88c6af112\u0026amp;signature=b467146af7a3803c8d5d28fb51aa2f666b4a20b874040cb5550cb8f063462490\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/docs/mintlify-assets/_mintlify/favicons/anaconda-29683c67/Q6mS5k5M0lNdBscF/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Anaconda\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#1d6cf7\">\u003clink data-mint-head rel=\"canonical\" href=\"https://www.anaconda.com/docs/platform/guides/inference/python-api/deployed-app-scale-to-zero\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/platform/guides/inference/python-api/deployed-app-scale-to-zero.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://www.anaconda.com/#organization\",\"name\":\"Anaconda\",\"url\":\"https://www.anaconda.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/anaconda-29683c67/s-9WR15r5rZoaPqb/logo/light.svg?fit=max\u0026auto=format\u0026n=s-9WR15r5rZoaPqb\u0026q=85\u0026s=5996719b8530aaf065dc1ee1f39b2e67\"}},{\"@type\":\"WebSite\",\"@id\":\"https://www.anaconda.com/docs#website\",\"name\":\"Anaconda\",\"url\":\"https://www.anaconda.com/docs\",\"publisher\":{\"@id\":\"https://www.anaconda.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://www.anaconda.com/docs/platform/guides/inference/python-api/deployed-app-scale-to-zero#webpage\",\"url\":\"https://www.anaconda.com/docs/platform/guides/inference/python-api/deployed-app-scale-to-zero\",\"name\":\"DeployedApp.scale_to_zero\",\"dateModified\":\"2026-11-06T21:28:03.192Z\",\"isPartOf\":{\"@id\":\"https://www.anaconda.com/docs#website\"},\"breadcrumb\":{\"@id\":\"https://www.anaconda.com/docs/platform/guides/inference/python-api/deployed-app-scale-to-zero#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://www.anaconda.com/docs/platform/guides/inference/python-api/deployed-app-scale-to-zero#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Platform Guides\",\"item\":\"https://www.anaconda.com/docs/platform/guides/inference/deploy-model-from-catalog\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Inference\",\"item\":\"https://www.anaconda.com/docs/platform/guides/inference/deploy-model-from-catalog\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Programmatic deployment API reference\",\"item\":\"https://www.anaconda.com/docs/platform/guides/inference/python-api/index\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"DeployedApp\",\"item\":\"https://www.anaconda.com/docs/platform/guides/inference/python-api/deployed-app\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"DeployedApp.scale_to_zero\",\"item\":\"https://www.anaconda.com/docs/platform/guides/inference/python-api/deployed-app-scale-to-zero\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://www.anaconda.com/docs/platform/guides/inference/python-api/deployed-app-scale-to-zero#article\",\"headline\":\"DeployedApp.scale_to_zero\",\"name\":\"DeployedApp.scale_to_zero\",\"url\":\"https://www.anaconda.com/docs/platform/guides/inference/python-api/deployed-app-scale-to-zero\",\"mainEntityOfPage\":{\"@id\":\"https://www.anaconda.com/docs/platform/guides/inference/python-api/deployed-app-scale-to-zero#webpage\"},\"dateModified\":\"2026-11-06T21:28:03.192Z\",\"keywords\":\"platform, deployment, python, api\",\"publisher\":{\"@id\":\"https://www.anaconda.com/#organization\"},\"isPartOf\":{\"@id\":\"https://www.anaconda.com/docs#website\"}}]}\u003c/script>","siteName":"Anaconda","nav":{"global":null,"products":[{"product":"Anaconda Docs","icon":"https://mintlify.s3.us-west-1.amazonaws.com/anaconda-29683c67/images/anaconda-icon.svg","pages":[{"title":"Anaconda Docs","href":"/main"}]},{"product":"Getting Started","icon":"rocket-launch","pages":[{"title":"Getting Started","href":"/getting-started/main"}]},{"product":"Anaconda.org","icon":"globe","pages":[{"title":"Anaconda.org","href":"/anaconda-org/key-features"}]},{"product":"Anaconda Desktop","icon":"desktop","pages":[{"title":"Anaconda Desktop","href":"/anaconda-desktop/key-features"}]},{"product":"Package Security Manager","icon":"shield-check","versions":[{"version":"6.8.0"},{"version":"6.7.2"},{"version":"6.7.1"},{"version":"6.7.0"},{"version":"6.6.5"},{"version":"6.6.4"},{"version":"6.6.3"},{"version":"6.6.2"},{"version":"6.6.1"},{"version":"6.6.0"},{"version":"6.5.3"},{"version":"6.5.2"},{"version":"6.5.1"},{"version":"6.4.0"},{"version":"6.3.1"},{"version":"6.3.0"},{"version":"6.2.0"},{"version":"6.1.9"},{"version":"6.1.8"},{"version":"6.1.7"},{"version":"6.1.6"},{"version":"6.1.4"}],"pages":[{"title":"Package Security Manager","href":"/anaconda-platform/main"}]},{"product":"Anaconda Platform","icon":"layer-group","tabs":[{"tab":"Guides","groups":[{"group":"Anaconda Platform","pages":[{"title":"Anaconda Platform","sidebarTitle":"Key features","href":"/platform/main"},{"title":"Platform architecture","sidebarTitle":"Architecture","href":"/platform/architecture"},{"title":"System requirements","sidebarTitle":"System requirements","href":"/platform/system-requirements"},{"group":"Concepts","pages":[{"title":"What is a perimeter?","href":"/platform/concepts/what-is-a-perimeter"},{"title":"What is a user?","href":"/platform/concepts/what-is-a-user"},{"title":"What are roles and privileges?","href":"/platform/concepts/roles-and-privileges"},{"title":"What is compute?","href":"/platform/concepts/what-is-compute"},{"title":"What is a workstation?","href":"/platform/concepts/what-is-a-workstation"},{"title":"What is a workflow?","href":"/platform/concepts/what-is-a-workflow"},{"title":"What is a workload?","href":"/platform/concepts/what-is-a-workload"},{"title":"What is a channel?","href":"/platform/concepts/what-is-a-channel"},{"title":"What is the model catalog?","href":"/platform/concepts/what-is-the-model-catalog"},{"title":"What is a deployment?","href":"/platform/concepts/what-is-deployment"},{"title":"What is a project?","href":"/platform/concepts/what-is-a-project"},{"title":"What is a policy?","href":"/platform/concepts/what-is-a-policy"}]}]},{"group":"Getting Started","pages":[{"title":"Connect to Anaconda Platform and run your first flow","sidebarTitle":"Connect and run your first flow","href":"/platform/getting-started/connect-and-first-run"},{"title":"Scale to the cloud","href":"/platform/getting-started/scaling-to-the-cloud"},{"title":"Define the environment","href":"/platform/getting-started/defining-the-environment"},{"title":"Deploy to production","href":"/platform/getting-started/deploying-to-production"}]},{"group":"Platform Guides","pages":[{"group":"Inference","pages":[{"title":"Deploy a model from the model catalog","sidebarTitle":"Deploy a model from the catalog","href":"/platform/guides/inference/deploy-model-from-catalog"},{"title":"Writing your first deployment","sidebarTitle":"Writing your first deployment","href":"/platform/guides/inference/writing-your-first-deployment"},{"title":"Deployments deep dive","sidebarTitle":"Deployments deep dive","href":"/platform/guides/inference/deployments-deep-dive"},{"group":"Programmatic deployment API reference","root":{"title":"Programmatic deployment API reference","sidebarTitle":"Overview","href":"/platform/guides/inference/python-api/index"},"pages":[{"group":"AppDeployer","root":{"title":"AppDeployer","sidebarTitle":"AppDeployer","href":"/platform/guides/inference/python-api/app-deployer"},"pages":[{"title":"AppDeployer.deploy","sidebarTitle":".deploy","href":"/platform/guides/inference/python-api/app-deployer-deploy"},{"title":"AppDeployer.list_deployments","sidebarTitle":".list_deployments","href":"/platform/guides/inference/python-api/app-deployer-list-deployments"}]},{"group":"DeployedApp","root":{"title":"DeployedApp","sidebarTitle":"DeployedApp","href":"/platform/guides/inference/python-api/deployed-app"},"pages":[{"title":"DeployedApp.id","sidebarTitle":".id","href":"/platform/guides/inference/python-api/deployed-app-id"},{"title":"DeployedApp.auth_type","sidebarTitle":".auth_type","href":"/platform/guides/inference/python-api/deployed-app-auth-type"},{"title":"DeployedApp.public_url","sidebarTitle":".public_url","href":"/platform/guides/inference/python-api/deployed-app-public-url"},{"title":"DeployedApp.internal_url","sidebarTitle":".internal_url","href":"/platform/guides/inference/python-api/deployed-app-internal-url"},{"title":"DeployedApp.name","sidebarTitle":".name","href":"/platform/guides/inference/python-api/deployed-app-name"},{"title":"DeployedApp.deployed_version","sidebarTitle":".deployed_version","href":"/platform/guides/inference/python-api/deployed-app-deployed-version"},{"title":"DeployedApp.tags","sidebarTitle":".tags","href":"/platform/guides/inference/python-api/deployed-app-tags"},{"title":"DeployedApp.info","sidebarTitle":".info","href":"/platform/guides/inference/python-api/deployed-app-info"},{"title":"DeployedApp.logs","sidebarTitle":".logs","href":"/platform/guides/inference/python-api/deployed-app-logs"},{"title":"DeployedApp.replicas","sidebarTitle":".replicas","description":null,"href":"/platform/guides/inference/python-api/deployed-app-replicas"},{"title":"DeployedApp.scale_to_zero","sidebarTitle":".scale_to_zero","href":"/platform/guides/inference/python-api/deployed-app-scale-to-zero"},{"title":"DeployedApp.delete","sidebarTitle":".delete","description":null,"href":"/platform/guides/inference/python-api/deployed-app-delete"},{"title":"DeployedApp.auth","sidebarTitle":".auth","href":"/platform/guides/inference/python-api/deployed-app-auth"}]},{"group":"Utilities","pages":[{"title":"bake_image","sidebarTitle":"bake_image","href":"/platform/guides/inference/python-api/bake-image"},{"title":"package_code","sidebarTitle":"package_code","href":"/platform/guides/inference/python-api/package-code"}]},{"title":"Deploying apps in flows","sidebarTitle":"Using the @app_deploy decorator","href":"/platform/guides/inference/python-api/apps-in-flows"},{"title":"Exceptions","sidebarTitle":"Exceptions","href":"/platform/guides/inference/python-api/exceptions"}]}]},{"group":"Projects","root":{"title":"Working with projects","sidebarTitle":"Working with projects","href":"/platform/guides/projects/working-with-projects"},"pages":[{"title":"Setting up a project","href":"/platform/guides/projects/setting-up-a-new-project"},{"title":"Project structure","sidebarTitle":"Project structure","href":"/platform/guides/projects/project-structure"},{"title":"Project lifecycle","sidebarTitle":"Project lifecycle","href":"/platform/guides/projects/project-lifecycle"},{"title":"Project assets","sidebarTitle":"Project assets","href":"/platform/guides/projects/project-assets"},{"title":"Project gallery","sidebarTitle":"Project gallery","href":"/platform/guides/projects/project-gallery"},{"title":"Example project","sidebarTitle":"Example project","href":"/platform/guides/projects/example-project"},{"group":"Project utilities API","root":{"title":"Project utilities API","sidebarTitle":"Overview","href":"/platform/guides/projects/utilities-api/index"},"pages":[{"title":"ProjectFlow","sidebarTitle":"ProjectFlow","href":"/platform/guides/projects/utilities-api/project-flow"},{"group":"Asset registration","root":{"title":"Asset registration","sidebarTitle":"Asset registration","href":"/platform/guides/projects/utilities-api/assets/registration/index"},"pages":[{"title":"prj.register_data","sidebarTitle":".register_data","href":"/platform/guides/projects/utilities-api/assets/registration/register-data"},{"title":"prj.register_external_data","sidebarTitle":".register_external_data","href":"/platform/guides/projects/utilities-api/assets/registration/register-external-data"},{"title":"prj.register_model","sidebarTitle":".register_model","href":"/platform/guides/projects/utilities-api/assets/registration/register-model"},{"title":"prj.register_external_model","sidebarTitle":".register_external_model","href":"/platform/guides/projects/utilities-api/assets/registration/register-external-model"}]},{"group":"Asset consumption","root":{"title":"Asset consumption","sidebarTitle":"Asset consumption","href":"/platform/guides/projects/utilities-api/assets/consumption/index"},"pages":[{"title":"prj.get_data","sidebarTitle":".get_data","href":"/platform/guides/projects/utilities-api/assets/consumption/get-data"},{"title":"prj.get_model","sidebarTitle":".get_model","href":"/platform/guides/projects/utilities-api/assets/consumption/get-model"},{"title":"prj.asset.consume_data_asset","sidebarTitle":".consume_data_asset","href":"/platform/guides/projects/utilities-api/assets/consumption/consume-data-asset"},{"title":"prj.asset.consume_model_asset","sidebarTitle":".consume_model_asset","href":"/platform/guides/projects/utilities-api/assets/consumption/consume-model-asset"},{"title":"prj.asset.list_data_assets","sidebarTitle":".list_data_assets","href":"/platform/guides/projects/utilities-api/assets/consumption/list-data-assets"},{"title":"prj.asset.list_model_assets","sidebarTitle":".list_model_assets","href":"/platform/guides/projects/utilities-api/assets/consumption/list-model-assets"}]},{"group":"Asset deletion","root":{"title":"Asset deletion","sidebarTitle":"Asset deletion","href":"/platform/guides/projects/utilities-api/assets/deletion/index"},"pages":[{"title":"prj.asset.delete_data_asset","sidebarTitle":".delete_data_asset","href":"/platform/guides/projects/utilities-api/assets/deletion/delete-data-asset"},{"title":"prj.asset.delete_model_asset","sidebarTitle":".delete_model_asset","href":"/platform/guides/projects/utilities-api/assets/deletion/delete-model-asset"}]},{"title":"Standalone asset usage","sidebarTitle":"Standalone asset usage","href":"/platform/guides/projects/utilities-api/assets/standalone-usage"},{"title":"Scheduling and triggering","sidebarTitle":"Scheduling and triggering","href":"/platform/guides/projects/utilities-api/scheduling-and-triggering"},{"group":"Event publishing","root":{"title":"Event publishing","sidebarTitle":"Event publishing","href":"/platform/guides/projects/utilities-api/events/index"},"pages":[{"title":"prj.publish_event","sidebarTitle":".publish_event","href":"/platform/guides/projects/utilities-api/events/publish-event"},{"title":"prj.safe_publish_event","sidebarTitle":".safe_publish_event","href":"/platform/guides/projects/utilities-api/events/safe-publish-event"},{"title":"ProjectEvent","sidebarTitle":"ProjectEvent","href":"/platform/guides/projects/utilities-api/events/project-event"}]},{"title":"Asset promotion","sidebarTitle":"Asset promotion","href":"/platform/guides/projects/utilities-api/promotion"},{"title":"Evaluation logging","sidebarTitle":"Evaluation logging","href":"/platform/guides/projects/utilities-api/evaluation-logging"},{"group":"CLI","pages":[{"title":"obproject-deploy","sidebarTitle":"obproject-deploy","href":"/platform/guides/projects/utilities-api/cli/obproject-deploy"},{"group":"flowproject","root":{"title":"outerbounds flowproject","sidebarTitle":"outerbounds flowproject","href":"/platform/guides/projects/utilities-api/cli/flowproject/index"},"pages":[{"title":"outerbounds flowproject get-metadata","sidebarTitle":"flowproject get-metadata","href":"/platform/guides/projects/utilities-api/cli/flowproject/get-metadata"},{"title":"outerbounds flowproject set-metadata","sidebarTitle":"flowproject set-metadata","href":"/platform/guides/projects/utilities-api/cli/flowproject/set-metadata"},{"title":"outerbounds flowproject list-templates","sidebarTitle":"flowproject list-templates","href":"/platform/guides/projects/utilities-api/cli/flowproject/list-templates"},{"title":"outerbounds flowproject delete-metadata","sidebarTitle":"flowproject delete-metadata","href":"/platform/guides/projects/utilities-api/cli/flowproject/delete-metadata"},{"title":"outerbounds flowproject teardown-branch","sidebarTitle":"flowproject teardown-branch","href":"/platform/guides/projects/utilities-api/cli/flowproject/teardown-branch"}]}]}]}]},{"group":"Develop","pages":[{"title":"Setting up a cloud workstation","sidebarTitle":"Setting up a cloud workstation","href":"/platform/guides/develop/setting-up-a-cloud-workstation"},{"title":"Connecting to a cloud workstation","sidebarTitle":"Connecting to a cloud workstation","href":"/platform/guides/develop/connecting-to-a-cloud-workstation"},{"title":"Switching between perimeters","sidebarTitle":"Switching perimeters","href":"/platform/guides/develop/switching-between-perimeters"},{"title":"Testing a flow with pytest","sidebarTitle":"Testing with pytest","href":"/platform/guides/develop/testing-a-flow-with-pytest"},{"title":"Access parent directories from a flow","sidebarTitle":"Access parent directories","href":"/platform/guides/develop/access-parent-directories-from-a-flow"}]},{"group":"Resources","pages":[{"title":"Packages","sidebarTitle":"Packages","href":"/platform/guides/resources/packages"},{"title":"Model catalog","sidebarTitle":"Model catalog","href":"/platform/guides/resources/model-catalog"}]},{"group":"Moving Data","pages":[{"title":"Chunk a dataframe to .parquet","sidebarTitle":"Chunk a Dataframe","href":"/platform/guides/moving-data/chunk-a-dataframe-to-parquet"},{"title":"Load tabular data from cloud storage","sidebarTitle":"Fast cloud to table","href":"/platform/guides/moving-data/load-tabular-data-from-cloud-storage"},{"title":"Load CSV data in Metaflow steps","sidebarTitle":"Load CSV Data","href":"/platform/guides/moving-data/load-csv-data-in-metaflow-steps"},{"title":"Load .parquet data from S3 to Arrow table","sidebarTitle":"Load Parquet to Arrow","href":"/platform/guides/moving-data/load-parquet-from-s3-to-arrow-table"},{"title":"Load .parquet data from S3 to pandas dataframe","sidebarTitle":"Load Parquet to Pandas","href":"/platform/guides/moving-data/load-parquet-from-s3-to-pandas-dataframe"},{"title":"Run SQL query with AWS Athena","sidebarTitle":"SQL Query AWS Athena","href":"/platform/guides/moving-data/run-sql-query-with-aws-athena"},{"title":"Run SQL query with pandas","sidebarTitle":"SQL Query Pandas","href":"/platform/guides/moving-data/run-sql-query-with-pandas"}]},{"group":"Compute","pages":[{"title":"Structuring projects","sidebarTitle":"Structuring projects","href":"/platform/guides/compute/structuring-projects"},{"title":"Managing dependencies","sidebarTitle":"Managing dependencies","href":"/platform/guides/compute/managing-dependencies"},{"title":"Configuring cloud workstations","sidebarTitle":"Configuring cloud workstations","href":"/platform/guides/compute/workstation-backends"},{"title":"Workstations FAQ","sidebarTitle":"Workstations FAQ","href":"/platform/guides/compute/workstations-faq"},{"title":"Running steps across clouds","sidebarTitle":"Running steps across clouds","href":"/platform/guides/compute/running-steps-across-clouds"},{"title":"Scalability FAQ","sidebarTitle":"Scalability FAQ","href":"/platform/guides/compute/scalability-faq"}]},{"group":"Deploy","pages":[{"title":"CI/CD integration","sidebarTitle":"CI/CD integration","href":"/platform/guides/deploy/cicd-integration"},{"title":"Setting up notifications for deployments","sidebarTitle":"Deployment notifications","href":"/platform/guides/deploy/deployment-notifications"},{"title":"Fast Bakery","sidebarTitle":"Fast Bakery","href":"/platform/guides/deploy/fast-bakery"}]},{"group":"Security","pages":[{"title":"Configuring and using secrets","sidebarTitle":"Configuring secrets","href":"/platform/guides/security/configuring-secrets"},{"title":"Custom IAM role to access S3","sidebarTitle":"Custom IAM role to access S3","href":"/platform/guides/security/custom-iam-roles-to-access-s3"},{"title":"Programmatic access with machine users","href":"/platform/guides/security/programmatic-access-via-machine-users"},{"title":"Okta SSO integration","sidebarTitle":"Okta SSO integration","href":"/platform/guides/security/okta-sso-integration"},{"title":"Configuring secrets with AWS Secrets Manager","href":"/platform/guides/security/configuring-secrets-with-aws-secret-manager"}]},{"group":"Governance","pages":[{"title":"Channel governance","href":"/platform/guides/governance/channel-governance"},{"title":"Model governance","sidebarTitle":"Model governance","href":"/platform/guides/governance/model-governance"}]},{"group":"Monitor","pages":[{"title":"Overview of cost optimization","sidebarTitle":"Cost optimization","href":"/platform/guides/monitor/cost-optimization-overview"},{"title":"Using cost reports","href":"/platform/guides/monitor/using-cost-reports"}]}]}]},{"tab":"Tutorials","pages":[{"title":"Tutorials","href":"/platform/tutorials/xgboost"}]},{"tab":"CLI Reference","pages":[{"title":"CLI Reference","href":"/platform/cli"}]}]},{"product":"Data Science \u0026 AI Workbench","icon":"chart-network","versions":[{"version":"5.9.0"},{"version":"5.8.1"},{"version":"5.8.0"},{"version":"5.7.1"},{"version":"5.7.0"},{"version":"5.6.2"},{"version":"5.6.1"},{"version":"5.6.0"},{"version":"5.5.2"},{"version":"5.5.1"}],"pages":[{"title":"Data Science \u0026 AI Workbench","href":"/data-science/latest/main"}]},{"product":"Anaconda CLI \u0026 MCP","icon":"terminal","pages":[{"title":"Anaconda CLI \u0026 MCP","href":"/cli-reference/anaconda-cli/getting-started"}]},{"product":"Legacy applications","icon":"window-restore","pages":[{"title":"Legacy applications","href":"/legacy/anaconda-navigator/main"}]},{"product":"Reference","icon":"book","pages":[{"title":"Reference","href":"/reference/release-notes"}]},{"product":"Support \u0026 Troubleshooting","icon":"headset","pages":[{"title":"Support \u0026 Troubleshooting","href":"/reference/help-support"}]},{"product":"Repository Managers","hidden":true,"pages":[{"title":"Repository Managers","href":"/repo-managers/main"}]}]},"basePath":"","title":"DeployedApp.scale_to_zero - Anaconda","buildId":"dpl_BSPUBxEoKhhK7HzXVDPxdPvWx4xc","deploymentId":"dpl_BSPUBxEoKhhK7HzXVDPxdPvWx4xc","dynamics":[],"chunks":[]}