Reset all StreamBuild-managed pipeline and source relations in one target:
stb reset-target --target uat
Standalone destructive commands resolve the local OS username in the same StreamBuild account
control store used by the development server. The account must be active and hold the built-in
admin role. Use --control-store-url when the installation does not use the project-local default
store.The frozen plan and review lifecycle use the durable relational control store rather than
process-local memory. Immediately before execution, StreamBuild reloads the account, recompiles the
project, resolves the selected target’s physical database again, and rejects account, target, or
database drift.Both commands:
require an interactive stdin terminal
print the complete frozen impact plan before prompting
require a separate review decision
prompt separately for every exact, case-sensitive challenge value
use the same planner, target lock, drift checks, executor, and operation recording as the UI
The commands do not accept non-interactive output or approval options. In particular, there is no
--yes, --force, --auto-approve, --confirm, --apply, or --no-confirm option.
Destruction is irreversible. A later build can recreate authored resources, but StreamBuild does
not restore the dropped data or automatically roll back a partial failure.
See Destructive Operations for exact resource scope,
confirmation rules, dependency closure, and retained evidence.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"StreamBuild","description":"Declarative streaming data pipelines for ClickHouse.","colors":{"primary":"#087E8B","light":"#0EA5A8","dark":"#0D9488"},"logo":{"light":"https://mintcdn.com/streambuild-docs/sEAbSxu5HagfR-Tx/streambuild_logo_light_cropped.png?fit=max\u0026auto=format\u0026n=sEAbSxu5HagfR-Tx\u0026q=85\u0026s=e5e126d1d3fccd286c7e7d80c5bbf549","dark":"https://mintcdn.com/streambuild-docs/sEAbSxu5HagfR-Tx/streambuild_logo_dark_cropped.png?fit=max\u0026auto=format\u0026n=sEAbSxu5HagfR-Tx\u0026q=85\u0026s=dfed7390ff171390d161d5274e94c7d5"},"favicon":"https://mintcdn.com/streambuild-docs/sEAbSxu5HagfR-Tx/streambuild_favicon.png?fit=max\u0026auto=format\u0026n=sEAbSxu5HagfR-Tx\u0026q=85\u0026s=1781550ef425821ca4a54062f21421e6","navbar":{"links":[{"href":"https://github.com/sqlstack-io/streambuild","label":"GitHub","type":"github"}]},"footer":{"socials":{"github":"https://github.com/sqlstack-io/streambuild"}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"streambuild-docs","hasAudioNarration":false,"actualSubdomain":"streambuild-docs","customDomains":["docs.streambuild.dev"],"gitSource":{"type":"github","owner":"sqlstack-io","repo":"streambuild-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"latestBuiltDeploymentHistoryId":"6ae2f876934e514db0a518f0","collectionId":"e2b7774c-904a-4d94-85d2-70bd617ee8d8","liveDeploymentHistoryId":"6ae2f876934e514db0a518f0","schemaVersion":"v3"},"entitlements":{},"buildId":"6ae2f876934e514db0a518f0","clientVersion":"0.0.4021","searchFilterCounts":[{"language":"default","tag":"Core Concepts","count":15},{"language":"default","tag":"CLI Reference","count":13},{"language":"default","tag":"Development UI","count":9},{"language":"default","tag":"Getting Started","count":2},{"language":"default","tag":"Examples","count":1}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"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":"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":"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":"byok-sep-25","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":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","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":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"cli/destruction","slug":"/cli/destruction","pageMetadata":{"title":"stb destroy and reset-target","description":"Interactively destroy selected pipelines or reset StreamBuild-managed target relations.","href":"/cli/destruction"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Interactively destroy selected pipelines or reset StreamBuild-managed target relations.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"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={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`Destroy selected pipelines while preserving their managed sources and replay data:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`shellscript`,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:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`stb`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` destroy`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --target`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` uat`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --select`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` pipeline:pl__orders`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` pipeline:pl__reporting`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Reset all StreamBuild-managed pipeline and source relations in one target:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,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:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`stb`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` reset-target`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --target`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` uat`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Standalone destructive commands resolve the local OS username in the same StreamBuild account\ncontrol store used by the development server. The account must be active and hold the built-in\n`,_jsx(_components.code,{children:`admin`}),` role. Use `,_jsx(_components.code,{children:`--control-store-url`}),` when the installation does not use the project-local default\nstore.`]}),`\n`,_jsx(_components.p,{children:`The frozen plan and review lifecycle use the durable relational control store rather than\nprocess-local memory. Immediately before execution, StreamBuild reloads the account, recompiles the\nproject, resolves the selected target’s physical database again, and rejects account, target, or\ndatabase drift.`}),`\n`,_jsx(_components.p,{children:`Both commands:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`require an interactive stdin terminal`}),`\n`,_jsx(_components.li,{children:`print the complete frozen impact plan before prompting`}),`\n`,_jsx(_components.li,{children:`require a separate review decision`}),`\n`,_jsx(_components.li,{children:`prompt separately for every exact, case-sensitive challenge value`}),`\n`,_jsx(_components.li,{children:`use the same planner, target lock, drift checks, executor, and operation recording as the UI`}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`The commands do not accept non-interactive output or approval options. In particular, there is no\n`,_jsx(_components.code,{children:`--yes`}),`, `,_jsx(_components.code,{children:`--force`}),`, `,_jsx(_components.code,{children:`--auto-approve`}),`, `,_jsx(_components.code,{children:`--confirm`}),`, `,_jsx(_components.code,{children:`--apply`}),`, or `,_jsx(_components.code,{children:`--no-confirm`}),` option.`]}),`\n`,_jsx(Warning,{children:_jsx(_components.p,{children:`Destruction is irreversible. A later build can recreate authored resources, but StreamBuild does\nnot restore the dropped data or automatically roll back a partial failure.`})}),`\n`,_jsxs(_components.p,{children:[`See `,_jsx(_components.a,{href:`/concepts/destructive-operations`,children:`Destructive Operations`}),` for exact resource scope,\nconfirmation rules, dependency closure, and retained evidence.`]})]})}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":"stb destroy and reset-target","description":"Interactively destroy selected pipelines or reset StreamBuild-managed target relations.","href":"/cli/destruction"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"subdomain":"streambuild-docs","siteName":"StreamBuild","title":"stb destroy and reset-target - StreamBuild","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-08-24T22:25:53.332Z","originalFileLocation":"cli/destruction.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=\"description\" content=\"Interactively destroy selected pipelines or reset StreamBuild-managed target relations.\">\u003cmeta data-mint-head name=\"application-name\" content=\"StreamBuild\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/streambuild-docs/taYM1CtLL2TnsjTr/_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=\"/mintlify-assets/_mintlify/favicons/streambuild-docs/taYM1CtLL2TnsjTr/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/streambuild-docs/taYM1CtLL2TnsjTr/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/streambuild-docs/taYM1CtLL2TnsjTr/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/streambuild-docs/taYM1CtLL2TnsjTr/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/streambuild-docs/taYM1CtLL2TnsjTr/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/streambuild-docs/taYM1CtLL2TnsjTr/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/streambuild-docs/taYM1CtLL2TnsjTr/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/streambuild-docs/taYM1CtLL2TnsjTr/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"stb destroy and reset-target - StreamBuild\">\u003cmeta data-mint-head property=\"og:description\" content=\"Interactively destroy selected pipelines or reset StreamBuild-managed target relations.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"StreamBuild\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.streambuild.dev/cli/destruction\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://streambuild-docs.mintlify.app/_mintlify/api/og/v2?division=CLI+Reference\u0026amp;title=stb+destroy+and+reset-target\u0026amp;description=Interactively+destroy+selected+pipelines+or+reset+StreamBuild-managed+target+relations.\u0026amp;theme=6f6706f30e98968413bdef00\u0026amp;signature=4c07c0a1ea2062e4f1d7d3bd8ac72b4fedcb9fd8453be0d884a7c83e6415ec98\">\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=\"stb destroy and reset-target - StreamBuild\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Interactively destroy selected pipelines or reset StreamBuild-managed target relations.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://streambuild-docs.mintlify.app/_mintlify/api/og/v2?division=CLI+Reference\u0026amp;title=stb+destroy+and+reset-target\u0026amp;description=Interactively+destroy+selected+pipelines+or+reset+StreamBuild-managed+target+relations.\u0026amp;theme=6f6706f30e98968413bdef00\u0026amp;signature=4c07c0a1ea2062e4f1d7d3bd8ac72b4fedcb9fd8453be0d884a7c83e6415ec98\">\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=\"/mintlify-assets/_mintlify/favicons/streambuild-docs/taYM1CtLL2TnsjTr/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"StreamBuild\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#087E8B\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.streambuild.dev/cli/destruction\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/cli/destruction.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.streambuild.dev/#organization\",\"name\":\"StreamBuild\",\"url\":\"https://docs.streambuild.dev\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/streambuild-docs/sEAbSxu5HagfR-Tx/streambuild_logo_light_cropped.png?fit=max\u0026auto=format\u0026n=sEAbSxu5HagfR-Tx\u0026q=85\u0026s=e5e126d1d3fccd286c7e7d80c5bbf549\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.streambuild.dev#website\",\"name\":\"StreamBuild\",\"url\":\"https://docs.streambuild.dev\",\"publisher\":{\"@id\":\"https://docs.streambuild.dev/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.streambuild.dev/cli/destruction#webpage\",\"url\":\"https://docs.streambuild.dev/cli/destruction\",\"name\":\"stb destroy and reset-target\",\"description\":\"Interactively destroy selected pipelines or reset StreamBuild-managed target relations.\",\"dateModified\":\"2026-08-24T22:25:53.332Z\",\"isPartOf\":{\"@id\":\"https://docs.streambuild.dev#website\"},\"breadcrumb\":{\"@id\":\"https://docs.streambuild.dev/cli/destruction#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.streambuild.dev/cli/destruction#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"CLI Reference\",\"item\":\"https://docs.streambuild.dev/cli/discover\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"stb destroy and reset-target\",\"item\":\"https://docs.streambuild.dev/cli/destruction\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.streambuild.dev/cli/destruction#article\",\"headline\":\"stb destroy and reset-target\",\"name\":\"stb destroy and reset-target\",\"description\":\"Interactively destroy selected pipelines or reset StreamBuild-managed target relations.\",\"url\":\"https://docs.streambuild.dev/cli/destruction\",\"mainEntityOfPage\":{\"@id\":\"https://docs.streambuild.dev/cli/destruction#webpage\"},\"dateModified\":\"2026-08-24T22:25:53.332Z\",\"publisher\":{\"@id\":\"https://docs.streambuild.dev/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.streambuild.dev#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"StreamBuild\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"StreamBuild","nav":{"global":null,"groups":[{"group":"Getting Started","pages":[{"title":"Introduction","href":"/index"},{"title":"Direct-mode Quickstart","href":"/quickstart"}]},{"group":"Core Concepts","pages":[{"title":"Project Configuration","href":"/concepts/project-configuration"},{"title":"Authentication","href":"/concepts/authentication-and-access"},{"title":"Access Control","href":"/concepts/access-control"},{"title":"Sensors","href":"/concepts/sensors"},{"title":"Providers","href":"/concepts/providers"},{"title":"Sources and Pipelines","href":"/concepts/pipelines"},{"title":"Models","href":"/concepts/models"},{"title":"Direct Mode","href":"/concepts/direct-mode"},{"title":"Virtual Environments","href":"/concepts/deployments"},{"title":"Destructive Operations","href":"/concepts/destructive-operations"},{"title":"Replay and Lineage","href":"/concepts/replay-lineage"},{"title":"ClickHouse Architecture","href":"/concepts/architecture"},{"title":"SQL Testing","href":"/concepts/testing"},{"title":"Python Macros","href":"/concepts/macros"},{"title":"Audits","href":"/concepts/audits"}]},{"group":"Development UI","pages":[{"title":"Development UI","href":"/ui/overview"},{"title":"Pipelines","href":"/ui/pipelines"},{"title":"Warehouse Health","href":"/ui/warehouse-health"},{"title":"Sources","href":"/ui/sources"},{"title":"Topics","href":"/ui/topics"},{"title":"Messages","href":"/ui/messages"},{"title":"Plans","href":"/ui/plans"},{"title":"Runs","href":"/ui/runs"},{"title":"Quality","href":"/ui/quality"}]},{"group":"CLI Reference","pages":[{"title":"stb discover","href":"/cli/discover"},{"title":"stb compile","href":"/cli/compile"},{"title":"stb plan","href":"/cli/plan"},{"title":"stb build","href":"/cli/build"},{"title":"stb dev","href":"/cli/dev"},{"title":"stb audit","href":"/cli/audit"},{"title":"stb deployment","href":"/cli/deployment"},{"title":"stb test","href":"/cli/test"},{"title":"stb doctor","href":"/cli/doctor"},{"title":"stb repair active-view","href":"/cli/repair"},{"title":"stb reconcile","href":"/cli/reconcile"},{"title":"stb janitor","description":"Preview and remove stale deployment objects after a retention window.","href":"/cli/janitor"},{"title":"stb destroy and reset-target","href":"/cli/destruction"}]},{"group":"Examples","pages":[{"title":"Commerce Events Demo","description":"Run a deterministic Kafka-to-ClickHouse project with replay-safe facts, tests, audits, and a controlled warning/recovery story.","href":"/examples/orders-demo"}]}]},"title":"stb destroy and reset-target - StreamBuild","buildId":"dpl_EnxDqhjaNc9a8MVa833TGULPd9uJ","deploymentId":"dpl_EnxDqhjaNc9a8MVa833TGULPd9uJ","dynamics":[],"chunks":[]}