# Find cleanup candidates (interactive)wit cleanup# Dry run - see what would be deletedwit cleanup --dry-run# Force delete without confirmationwit cleanup --force# Only show merged brancheswit cleanup --merged# Only show stale brancheswit cleanup --stale# Set stale threshold (days)wit cleanup --days 60
A branch is “stale” if its most recent commit is older than the threshold (default: 30 days). The age is calculated from the commit’s author timestamp.
{"docsConfig":{"$schema":"https://mintlify.com/docs.json","theme":"mint","name":"wit","colors":{"primary":"#6366F1","light":"#818CF8","dark":"#4F46E5"},"favicon":"/favicon.svg","logo":{"light":"https://mintcdn.com/test-4cc74a53/eG5noMpSE06zuI73/logo/light.svg?fit=max\u0026auto=format\u0026n=eG5noMpSE06zuI73\u0026q=85\u0026s=08e62077d32e3249811b16e18651e2f8","dark":"https://mintcdn.com/test-4cc74a53/eG5noMpSE06zuI73/logo/dark.svg?fit=max\u0026auto=format\u0026n=eG5noMpSE06zuI73\u0026q=85\u0026s=22d3e18497bae92e18524f76ea9d3532"},"navbar":{"links":[{"label":"GitHub","href":"https://github.com/abhiaiyer91/wit"}],"primary":null},"footer":{"socials":{"github":"https://github.com/abhiaiyer91/wit"}},"navigation":{"global":{"anchors":[{"anchor":"GitHub","href":"https://github.com/abhiaiyer91/wit","icon":"github"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"test-4cc74a53","hasAudioNarration":false,"actualSubdomain":"test-4cc74a53","customDomains":["docs.wit.sh"],"gitSource":{"type":"github","owner":"abhiaiyer91","repo":"wit","deployBranch":"main","contentDirectory":"docs","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6a21ea2fa8fc07c2afd400dd","collectionId":"e19d551d-8ab0-4515-b9f9-4988d023fcdd","schemaVersion":"v2"},"entitlements":{},"buildId":"6a21ea2fa8fc07c2afd400dd:success","clientVersion":"0.0.3966","searchFilterCounts":[{"language":"default","tag":"Documentation","count":86},{"language":"default","tag":"API Reference","count":40},{"language":"default","tag":"Commands","count":39},{"language":"default","tag":"Platform","count":16},{"language":"default","tag":"AI \u0026 Intelligence","count":7},{"language":"default","tag":"Workflows","count":7},{"language":"default","tag":"Git Basics","count":6},{"language":"default","tag":"Productivity","count":5},{"language":"default","tag":"AI Features","count":5},{"language":"default","tag":"Project Management","count":5}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"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":"editor-v7-file-tree","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":"pause-universal-search-reconcile","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":"per-site-search-delta","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":"editor-private-page-search","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":"editor-nav-generations","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":"editor-agent-model-picker","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":"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}],"isAtlas":false,"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"commands/cleanup","slug":"/commands/cleanup","pageMetadata":{"title":"cleanup","description":"Find and delete merged or stale branches","href":"/commands/cleanup"},"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: \"Find and delete merged or stale branches\"\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`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Table,Tip,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Tip)_missingMdxReference(`Tip`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`1`,id:`wit-cleanup`,children:`wit cleanup`}),`\n`,_jsx(_components.p,{children:`Automatically find and delete branches that have been merged or are stale. Much better than manually checking each branch.`}),`\n`,_jsx(Heading,{level:`2`,id:`overview`,children:`Overview`}),`\n`,_jsxs(_components.p,{children:[`Over time, repositories accumulate branches that are no longer needed. `,_jsx(_components.code,{children:`wit cleanup`}),` helps you identify:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Merged branches`}),` - Already merged into main/master`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Stale branches`}),` - No commits for a configurable period (default: 30 days)`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`usage`,children:`Usage`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`17`,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:`17`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Find cleanup candidates (interactive)`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`wit`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` cleanup`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Dry run - see what would be deleted`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`wit`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` cleanup`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --dry-run`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Force delete without confirmation`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`wit`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` cleanup`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --force`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Only show merged branches`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`wit`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` cleanup`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --merged`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Only show stale branches`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`wit`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` cleanup`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --stale`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Set stale threshold (days)`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`wit`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` cleanup`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --days`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 60`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`options`,children:`Options`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Option`}),_jsx(_components.th,{children:`Alias`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`--dry-run`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`-n`})}),_jsx(_components.td,{children:`Show what would be deleted without deleting`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`--force`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`-f`})}),_jsx(_components.td,{children:`Skip confirmation prompt`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`--merged`})}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Only show branches merged into main`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`--stale`})}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Only show branches older than stale threshold`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`--all`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`-a`})}),_jsx(_components.td,{children:`Show all candidates (merged + stale)`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`--days \u003cn>`})}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Days before a branch is considered stale (default: 30)`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`examples`,children:`Examples`}),`\n`,_jsx(Heading,{level:`3`,id:`interactive-cleanup`,children:`Interactive Cleanup`}),`\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:`wit`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` cleanup`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Output:`})}),`\n`,_jsx(CodeBlock,{numberOfLines:`19`,language:`text`,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:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`19`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Branch cleanup candidates:`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` [merged] feature/add-auth`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` Last commit: Add authentication middleware`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` Date: 12/15/2024`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` [merged] fix/login-bug`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` Last commit: Fix login validation`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` Date: 12/10/2024`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` [stale: 45d] experiment/new-ui`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` Last commit: WIP: trying new design`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` Date: 11/15/2024`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`This will delete 3 branch(es).`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Use --force to skip this confirmation.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Continue? [y/N]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Heading,{level:`3`,id:`dry-run`,children:`Dry Run`}),`\n`,_jsx(_components.p,{children:`See what would be cleaned up without making changes:`}),`\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:`wit`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` cleanup`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --dry-run`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Output:`})}),`\n`,_jsx(CodeBlock,{numberOfLines:`9`,language:`text`,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:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`9`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Branch cleanup candidates:`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` [merged] feature/add-auth`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` Last commit: Add authentication middleware`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` Date: 12/15/2024`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Dry run - no branches deleted`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` Remove --dry-run to actually delete branches`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Heading,{level:`3`,id:`merged-branches-only`,children:`Merged Branches Only`}),`\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:`wit`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` cleanup`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --merged`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --force`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Output:`})}),`\n`,_jsx(CodeBlock,{numberOfLines:`4`,language:`text`,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:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`4`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` Deleted 2 branch(es):`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` - feature/add-auth`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` - fix/login-bug`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Heading,{level:`3`,id:`custom-stale-threshold`,children:`Custom Stale Threshold`}),`\n`,_jsx(_components.p,{children:`Consider branches stale after 60 days instead of 30:`}),`\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:`wit`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` cleanup`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --stale`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --days`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 60`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`protected-branches`,children:`Protected Branches`}),`\n`,_jsx(_components.p,{children:`The following branches are never suggested for cleanup:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`main`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`master`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`develop`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`development`})}),`\n`,_jsx(_components.li,{children:`The current checked-out branch`}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`how-it-works`,children:`How It Works`}),`\n`,_jsx(Heading,{level:`3`,id:`merge-detection`,children:`Merge Detection`}),`\n`,_jsx(_components.p,{children:`A branch is considered “merged” if its tip commit is an ancestor of the main branch. This means all commits on that branch are already in main.`}),`\n`,_jsx(CodeBlock,{numberOfLines:`4`,language:`text`,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:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`4`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`main: A---B---C---D---E`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` \\\\ /`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`feature: F---G \u003c-- merged (G is ancestor of E)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Heading,{level:`3`,id:`stale-detection`,children:`Stale Detection`}),`\n`,_jsx(_components.p,{children:`A branch is “stale” if its most recent commit is older than the threshold (default: 30 days). The age is calculated from the commit’s author timestamp.`}),`\n`,_jsx(Heading,{level:`2`,id:`tips`,children:`Tips`}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[`Run `,_jsx(_components.code,{children:`wit cleanup --dry-run`}),` first to review what will be deleted before committing to the cleanup.`]})}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[`Use `,_jsx(_components.code,{children:`wit cleanup --merged --force`}),` in CI/CD pipelines to automatically clean up after merges.`]})}),`\n`,_jsx(Warning,{children:_jsx(_components.p,{children:`Deleted branches cannot be easily recovered. Make sure you’ve merged or pushed important work before cleanup.`})}),`\n`,_jsx(Heading,{level:`2`,id:`automation`,children:`Automation`}),`\n`,_jsx(_components.p,{children:`Add to your post-merge hooks or CI pipeline:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`yaml`,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:`yaml`,children:_jsxs(_components.code,{language:`yaml`,numberOfLines:`4`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# .wit/config.yaml`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`hooks`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` post-merge`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` - `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`wit cleanup --merged --force`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Or in GitHub Actions:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`yaml`,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:`yaml`,children:_jsxs(_components.code,{language:`yaml`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`- `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`name`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`Cleanup merged branches`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` run`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`wit cleanup --merged --force`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`related-commands`,children:`Related Commands`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/commands/branches`,children:_jsx(_components.code,{children:`wit branch`})}),` - List and manage branches`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/commands/branches`,children:_jsx(_components.code,{children:`wit branch -d`})}),` - Delete a specific branch`]}),`\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":"cleanup","description":"Find and delete merged or stale branches","href":"/commands/cleanup"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"wit cleanup","slug":"wit-cleanup","depth":1,"children":[]},{"title":"Overview","slug":"overview","depth":2,"children":[]},{"title":"Usage","slug":"usage","depth":2,"children":[]},{"title":"Options","slug":"options","depth":2,"children":[]},{"title":"Examples","slug":"examples","depth":2,"children":[{"title":"Interactive Cleanup","slug":"interactive-cleanup","depth":3,"children":[]},{"title":"Dry Run","slug":"dry-run","depth":3,"children":[]},{"title":"Merged Branches Only","slug":"merged-branches-only","depth":3,"children":[]},{"title":"Custom Stale Threshold","slug":"custom-stale-threshold","depth":3,"children":[]}]},{"title":"Protected Branches","slug":"protected-branches","depth":2,"children":[]},{"title":"How It Works","slug":"how-it-works","depth":2,"children":[{"title":"Merge Detection","slug":"merge-detection","depth":3,"children":[]},{"title":"Stale Detection","slug":"stale-detection","depth":3,"children":[]}]},{"title":"Tips","slug":"tips","depth":2,"children":[]},{"title":"Automation","slug":"automation","depth":2,"children":[]},{"title":"Related Commands","slug":"related-commands","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"test-4cc74a53","siteName":"wit","title":"cleanup - wit","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"originalFileLocation":"commands/cleanup.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=\"Find and delete merged or stale branches\">\u003cmeta data-mint-head name=\"application-name\" content=\"wit\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/test-4cc74a53/Wc3gEO9mXxfgx-Zc/_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/test-4cc74a53/Wc3gEO9mXxfgx-Zc/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/test-4cc74a53/Wc3gEO9mXxfgx-Zc/_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/test-4cc74a53/Wc3gEO9mXxfgx-Zc/_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/test-4cc74a53/Wc3gEO9mXxfgx-Zc/_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/test-4cc74a53/Wc3gEO9mXxfgx-Zc/_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/test-4cc74a53/Wc3gEO9mXxfgx-Zc/_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/test-4cc74a53/Wc3gEO9mXxfgx-Zc/_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/test-4cc74a53/Wc3gEO9mXxfgx-Zc/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"cleanup - wit\">\u003cmeta data-mint-head property=\"og:description\" content=\"Find and delete merged or stale branches\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"wit\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.wit.sh/commands/cleanup\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://test-4cc74a53.mintlify.app/_mintlify/api/og/v2?division=Productivity\u0026amp;title=cleanup\u0026amp;description=Find+and+delete+merged+or+stale+branches\u0026amp;theme=e4a42cd838ee3fe4d7d04f61\u0026amp;signature=41a449e66735750d861fb05038cbe167404899fbb21ea87fd66ae7a42af1ea7f\">\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=\"cleanup - wit\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Find and delete merged or stale branches\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://test-4cc74a53.mintlify.app/_mintlify/api/og/v2?division=Productivity\u0026amp;title=cleanup\u0026amp;description=Find+and+delete+merged+or+stale+branches\u0026amp;theme=e4a42cd838ee3fe4d7d04f61\u0026amp;signature=41a449e66735750d861fb05038cbe167404899fbb21ea87fd66ae7a42af1ea7f\">\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/test-4cc74a53/Wc3gEO9mXxfgx-Zc/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"wit\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#6366F1\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.wit.sh/commands/cleanup\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/commands/cleanup.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.wit.sh/#organization\",\"name\":\"wit\",\"url\":\"https://docs.wit.sh\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/test-4cc74a53/eG5noMpSE06zuI73/logo/light.svg?fit=max\u0026auto=format\u0026n=eG5noMpSE06zuI73\u0026q=85\u0026s=08e62077d32e3249811b16e18651e2f8\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.wit.sh#website\",\"name\":\"wit\",\"url\":\"https://docs.wit.sh\",\"publisher\":{\"@id\":\"https://docs.wit.sh/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.wit.sh/commands/cleanup#webpage\",\"url\":\"https://docs.wit.sh/commands/cleanup\",\"name\":\"cleanup\",\"description\":\"Find and delete merged or stale branches\",\"isPartOf\":{\"@id\":\"https://docs.wit.sh#website\"},\"breadcrumb\":{\"@id\":\"https://docs.wit.sh/commands/cleanup#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.wit.sh/commands/cleanup#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Commands\",\"item\":\"https://docs.wit.sh/commands/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Productivity\",\"item\":\"https://docs.wit.sh/commands/quality-of-life\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"cleanup\",\"item\":\"https://docs.wit.sh/commands/cleanup\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.wit.sh/commands/cleanup#article\",\"headline\":\"cleanup\",\"name\":\"cleanup\",\"description\":\"Find and delete merged or stale branches\",\"url\":\"https://docs.wit.sh/commands/cleanup\",\"mainEntityOfPage\":{\"@id\":\"https://docs.wit.sh/commands/cleanup#webpage\"},\"publisher\":{\"@id\":\"https://docs.wit.sh/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.wit.sh#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"wit\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"wit","nav":{"global":{"anchors":[{"anchor":"GitHub","href":"https://github.com/abhiaiyer91/wit","icon":"github"}]},"tabs":[{"tab":"Documentation","groups":[{"group":"Get Started","pages":[{"title":"Introduction","href":"/introduction"},{"title":"Quickstart","href":"/quickstart"},{"title":"Why wit?","href":"/why-wit"}]},{"group":"Commands","pages":[{"title":"Commands","href":"/commands/overview"},{"group":"Git Basics","pages":[{"title":"Basic Workflow","href":"/commands/basic-workflow"},{"title":"Branches","href":"/commands/branches"},{"title":"Remote Operations","href":"/commands/remotes"},{"title":"Merge","href":"/commands/merge"},{"title":"Stash","href":"/commands/stash"},{"title":"Worktrees","href":"/commands/worktree"}]},{"group":"History \u0026 Undo","pages":[{"title":"History Rewriting","href":"/commands/history-rewriting"},{"title":"Tags","href":"/commands/tags"},{"title":"Undo \u0026 History","href":"/commands/undo-history"}]},{"group":"Productivity","pages":[{"title":"Quality of Life","href":"/commands/quality-of-life"},{"title":"Debugging","href":"/commands/debugging"},{"title":"Advanced Commands","description":"Power user commands for advanced workflows","href":"/commands/advanced"},{"title":"cleanup","href":"/commands/cleanup"},{"title":"snapshot","description":"Create quick checkpoints without full commits","href":"/commands/snapshot"}]},{"group":"AI Features","pages":[{"title":"AI Commands","href":"/commands/ai"},{"title":"Agent","href":"/commands/agent"},{"title":"Search","href":"/commands/search"},{"title":"Code Review","href":"/commands/review"},{"title":"plan","href":"/commands/plan"}]},{"group":"Platform","pages":[{"title":"Platform Commands","href":"/commands/up-down"},{"title":"Server","href":"/commands/serve"},{"title":"Pull Requests","href":"/commands/pr"},{"title":"Issues","href":"/commands/issue"},{"title":"CI/CD","href":"/commands/ci"},{"title":"Stacked Diffs","href":"/commands/stack"},{"title":"Merge Queue","href":"/commands/merge-queue"},{"title":"release","href":"/commands/release"}]},{"group":"Team \u0026 Access","pages":[{"title":"Collaborators","href":"/commands/collaborator"},{"title":"Tokens","href":"/commands/token"},{"title":"Repository Management","href":"/commands/repo"}]},{"group":"Project Management","pages":[{"title":"Project","href":"/commands/project"},{"title":"Cycle","href":"/commands/cycle"},{"title":"Journal","href":"/commands/journal"},{"title":"Dashboard","href":"/commands/dashboard"},{"title":"Wrapped","href":"/commands/wrapped"}]},{"group":"Integrations","pages":[{"title":"github import","href":"/commands/github-import"},{"title":"status (platform)","href":"/commands/platform-status"},{"title":"fsck","href":"/commands/fsck"}]}]},{"group":"Visual Interfaces","pages":[{"title":"Visual Interfaces Overview","href":"/visual/overview"},{"title":"Web UI","href":"/visual/web-ui"},{"title":"Terminal UI","href":"/visual/terminal-ui"},{"title":"ASCII Graph","href":"/visual/graph"},{"title":"Themes","href":"/visual/themes"}]},{"group":"AI \u0026 Intelligence","pages":[{"title":"Smart Status","href":"/features/smart-status"},{"title":"AI-Powered Features","href":"/features/ai-powered"},{"title":"AI Agents","href":"/features/ai-agents"},{"title":"AI Workflows","href":"/features/ai-workflows"},{"title":"AI Tools Reference","href":"/ai/tools"},{"title":"Semantic Search","href":"/features/search"},{"title":"Code Review","href":"/features/review"}]},{"group":"Workflows","pages":[{"title":"Stacked Diffs","href":"/features/stacked-diffs"},{"title":"Hooks","href":"/features/hooks"},{"title":"CI/CD Engine","href":"/features/ci-cd"},{"title":"Merge Queue","href":"/features/merge-queue"},{"title":"Monorepo Scopes","href":"/features/monorepo-scopes"},{"title":"Worktrees","href":"/features/worktrees"},{"title":"Cycles \u0026 Projects","href":"/features/cycles-projects"}]},{"group":"GitHub \u0026 Team","pages":[{"title":"GitHub Integration","href":"/features/github"},{"title":"Collaborators","href":"/features/collaborators"},{"title":"Personal Access Tokens","href":"/features/tokens"},{"title":"Branch Protection","href":"/features/branch-protection"}]},{"group":"Advanced","pages":[{"title":"Large File Support","href":"/features/large-files"},{"title":"Submodules","href":"/features/submodules"},{"title":"Partial Clone","href":"/features/partial-clone"},{"title":"Migrating from Git","href":"/features/git-migration"}]},{"group":"Configuration","pages":[{"title":"Configuration Overview","href":"/configuration/overview"},{"title":"Repository Configuration","href":"/configuration/repository"},{"title":"Directory Structure","href":"/configuration/directory-structure"},{"title":"Shell Integration","href":"/configuration/shell-integration"},{"title":"Environment Variables","href":"/configuration/environment-variables"}]},{"group":"Platform","pages":[{"title":"Platform Overview","href":"/platform/overview"},{"title":"Git Server","href":"/platform/server"},{"title":"SSH Server","href":"/platform/ssh-server"},{"title":"Sandbox Providers","href":"/platform/sandboxes"},{"title":"Rate Limiting","href":"/platform/rate-limiting"},{"title":"Self-Hosting","href":"/platform/self-hosting"},{"title":"Pull Requests","href":"/platform/pull-requests"},{"title":"Issues","href":"/platform/issues"}]},{"group":"Architecture","pages":[{"title":"Architecture Overview","href":"/architecture/overview"},{"title":"Events System","href":"/architecture/events"},{"title":"Git-backed Primitives","href":"/architecture/primitives"}]},{"group":"Database","pages":[{"title":"Database Schema","href":"/database/schema"}]}]},{"tab":"API Reference","pages":[{"title":"API Reference","href":"/api-reference/overview"}]}]},"title":"cleanup - wit","buildId":"dpl_cadrRc5H9XQiJQbDFN5mcYRs2PAj","deploymentId":"dpl_cadrRc5H9XQiJQbDFN5mcYRs2PAj","dynamics":[],"chunks":[]}