Reclaim disk space by removing unreferenced data from your repository.
The oxen prune command removes orphaned nodes and version files that are not referenced by any commit in your repository. This helps reclaim disk space by cleaning up unreferenced data that accumulates over time.
Basic Usage
To prune your repository and remove orphaned files:
oxen prune
This will scan your repository, identify unreferenced nodes and version files, and remove them to free up disk space.
In large repositories, the prune operation can take a while to run as it needs to scan all nodes and version files. Consider using --dry-run first to estimate the scope of the operation.
Dry Run Mode
Before actually removing files, you can preview what would be deleted using the --dry-run flag:
oxen prune --dry-run
Or using the short form:
oxen prune -n
This is useful to see how much space would be freed without making any changes to your repository.
Understanding Prune Statistics
After running oxen prune, youโll see detailed statistics about the operation:Output:
Prune Statistics: Nodes: Scanned: 1250 Kept: 1100 Removed: 150 Version Files: Scanned: 3400 Kept: 3200 Removed: 200 Disk Space Freed: 1.2 GB
Nodes: Internal data structures that track file metadata
Scanned: Total number of nodes examined
Kept: Nodes still referenced by commits
Removed: Orphaned nodes that were deleted
Version Files: Actual file content stored in the repository
Scanned: Total number of version files examined
Kept: Files still referenced by commits
Removed: Orphaned files that were deleted
Disk Space Freed: Total amount of storage reclaimed
When to Use Prune
You should consider running oxen prune when:
Youโve deleted or modified many files across multiple commits
Youโve rebased or reset your commit history
Youโve removed large files from your repository
Your .oxen directory is taking up more space than expected
You want to optimize repository storage before sharing or archiving
Safety
The prune operation only removes files that are not referenced by any commit in your repository. It will never delete:
Files referenced by any commit
Files in your working directory
Staged files
The .oxen directory structure itself
This makes it safe to run without worrying about losing committed data.
Example Workflow
A typical workflow for pruning your repository:
# First, check what would be removedoxen prune --dry-run# Review the statistics# If everything looks good, run the actual pruneoxen prune# Verify your repository is still intactoxen statusoxen log
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Oxen.ai","description":"Oxen.ai is the platform for building AI on your own data. Use 200+ models through one API, version your datasets at scale, and fine-tune custom models.","colors":{"primary":"#0E87CB","light":"#0E87CB","dark":"#161616"},"logo":{"light":"https://mintcdn.com/oxenai/VndlMSXTb9YuU-Wl/logo/light.svg?fit=max\u0026auto=format\u0026n=VndlMSXTb9YuU-Wl\u0026q=85\u0026s=c1e0ff00ab0a8de0a5dca3f7cd146763","dark":"https://mintcdn.com/oxenai/VndlMSXTb9YuU-Wl/logo/dark.svg?fit=max\u0026auto=format\u0026n=VndlMSXTb9YuU-Wl\u0026q=85\u0026s=5ada75aaf4c15e38fe2743a7ac66c1b9"},"favicon":"https://mintcdn.com/oxenai/s_o9ZlhOEkYJf27_/favicon.png?fit=max\u0026auto=format\u0026n=s_o9ZlhOEkYJf27_\u0026q=85\u0026s=4977fd8edf8bbfb3ef5192cdd0156e37","background":{"color":{"dark":"#0A0A0A"}},"navbar":{"links":[{"href":"https://www.oxen.ai/blog","label":"Blog"},{"href":"https://discord.com/invite/s3tBEn7Ptg","label":"Support"}],"primary":{"type":"button","label":"Sign Up","href":"https://oxen.ai/register"}},"footer":{"socials":{"twitter":"https://twitter.com/oxen_ai","github":"https://github.com/Oxen-AI/Oxen","linkedin":"https://www.linkedin.com/company/oxenai"}},"integrations":{"ga4":{"measurementId":"G-H6D2C08EKP"},"posthog":{"apiKey":"phc_Do6VnS78puWwBQuPcJ7TkjixBZwsV4Xxc3ABHVNvjmE"}},"styling":{"latex":true},"navigation":{"global":{"anchors":[{"anchor":"Documentation","icon":"book-open-cover","href":"https://docs.oxen.ai"},{"anchor":"Blog","icon":"newspaper","href":"https://blog.oxen.ai"},{"anchor":"GitHub","icon":"github","href":"https://github.com/Oxen-AI/Oxen"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"oxenai","hasAudioNarration":false,"actualSubdomain":"oxenai","customDomains":["docs.oxen.ai"],"gitSource":{"type":"github","owner":"oxen-ai","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6b02942544961eaca6d9c405","clientVersion":"0.0.4347","searchFilterCounts":[{"language":"default","tag":"Repository API","count":87},{"language":"default","tag":"Fine-Tuning API","count":78},{"language":"default","tag":"Documentation","count":46},{"language":"default","tag":"API Reference","count":41},{"language":"default","tag":"Inference API","count":36},{"language":"default","tag":"Developer Tools","count":25},{"language":"default","tag":"Get Started","count":21},{"language":"default","tag":"fine_tunes","count":16},{"language":"default","tag":"๐ Python","count":15},{"language":"default","tag":"Commits","count":14}]},"assistantConfig":{},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","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":"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":"site-roles","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":"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":"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":"turbopuffer-dual-write","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":"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":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":".cta-button{display:inline-block;padding:0.4rem 0.9rem;margin:1.25rem 0;background-color:#8d34ff;color:white!important;font-weight:600;font-size:0.875rem;border-radius:0.375rem;text-decoration:none!important;border-bottom:none!important;box-shadow:none!important;transition:opacity 0.15s ease}.cta-button:hover{opacity:0.85;color:white!important}"}]}
{"page":{"pagePath":"getting-started/command-line/maintenance","slug":"/getting-started/command-line/maintenance","pageMetadata":{"title":"๐งน Maintenance","description":"Reclaim disk space by removing unreferenced data from your repository.","href":"/getting-started/command-line/maintenance"},"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: \"Reclaim disk space by removing unreferenced data from your repository.\"\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={code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`The `,_jsx(_components.code,{children:`oxen prune`}),` command removes orphaned nodes and version files that are not referenced by any commit in your repository. This helps reclaim disk space by cleaning up unreferenced data that accumulates over time.`]}),`\n`,_jsx(Heading,{level:`2`,id:`basic-usage`,children:`Basic Usage`}),`\n`,_jsx(_components.p,{children:`To prune your repository and remove orphaned files:`}),`\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:`oxen`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` prune`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`This will scan your repository, identify unreferenced nodes and version files, and remove them to free up disk space.`}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`In large repositories, the prune operation can take a while to run as it needs to scan all nodes and version files. Consider using `,_jsx(_components.code,{children:`--dry-run`}),` first to estimate the scope of the operation.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`dry-run-mode`,children:`Dry Run Mode`}),`\n`,_jsxs(_components.p,{children:[`Before actually removing files, you can preview what would be deleted using the `,_jsx(_components.code,{children:`--dry-run`}),` flag:`]}),`\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:`oxen`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` prune`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --dry-run`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Or using the short form:`}),`\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:`oxen`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` prune`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -n`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`This is useful to see how much space would be freed without making any changes to your repository.`}),`\n`,_jsx(Heading,{level:`2`,id:`understanding-prune-statistics`,children:`Understanding Prune Statistics`}),`\n`,_jsxs(_components.p,{children:[`After running `,_jsx(_components.code,{children:`oxen prune`}),`, youโll see detailed statistics about the operation:`]}),`\n`,_jsx(_components.p,{children:`Output:`}),`\n`,_jsx(CodeBlock,{numberOfLines:`11`,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:`11`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Prune Statistics:`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` Nodes:`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` Scanned: 1250`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` Kept: 1100`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` Removed: 150`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` Version Files:`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` Scanned: 3400`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` Kept: 3200`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` Removed: 200`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` Disk Space Freed: 1.2 GB`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Nodes`}),`: Internal data structures that track file metadata`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Scanned`}),`: Total number of nodes examined`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Kept`}),`: Nodes still referenced by commits`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Removed`}),`: Orphaned nodes that were deleted`]}),`\n`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Version Files`}),`: Actual file content stored in the repository`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Scanned`}),`: Total number of version files examined`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Kept`}),`: Files still referenced by commits`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Removed`}),`: Orphaned files that were deleted`]}),`\n`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Disk Space Freed`}),`: Total amount of storage reclaimed`]}),`\n`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`when-to-use-prune`,children:`When to Use Prune`}),`\n`,_jsxs(_components.p,{children:[`You should consider running `,_jsx(_components.code,{children:`oxen prune`}),` when:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Youโve deleted or modified many files across multiple commits`}),`\n`,_jsx(_components.li,{children:`Youโve rebased or reset your commit history`}),`\n`,_jsx(_components.li,{children:`Youโve removed large files from your repository`}),`\n`,_jsxs(_components.li,{children:[`Your `,_jsx(_components.code,{children:`.oxen`}),` directory is taking up more space than expected`]}),`\n`,_jsx(_components.li,{children:`You want to optimize repository storage before sharing or archiving`}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`safety`,children:`Safety`}),`\n`,_jsx(_components.p,{children:`The prune operation only removes files that are not referenced by any commit in your repository. It will never delete:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Files referenced by any commit`}),`\n`,_jsx(_components.li,{children:`Files in your working directory`}),`\n`,_jsx(_components.li,{children:`Staged files`}),`\n`,_jsxs(_components.li,{children:[`The `,_jsx(_components.code,{children:`.oxen`}),` directory structure itself`]}),`\n`]}),`\n`,_jsx(_components.p,{children:`This makes it safe to run without worrying about losing committed data.`}),`\n`,_jsx(Heading,{level:`2`,id:`example-workflow`,children:`Example Workflow`}),`\n`,_jsx(_components.p,{children:`A typical workflow for pruning your repository:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`10`,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:`10`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# First, check what would be removed`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`oxen`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` prune`}),_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:`# Review the statistics`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# If everything looks good, run the actual prune`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`oxen`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` prune`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Verify your repository is still intact`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`oxen`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` status`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`oxen`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` log`})]}),`\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":"๐งน Maintenance","description":"Reclaim disk space by removing unreferenced data from your repository.","href":"/getting-started/command-line/maintenance"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Basic Usage","slug":"basic-usage","depth":2,"children":[]},{"title":"Dry Run Mode","slug":"dry-run-mode","depth":2,"children":[]},{"title":"Understanding Prune Statistics","slug":"understanding-prune-statistics","depth":2,"children":[]},{"title":"When to Use Prune","slug":"when-to-use-prune","depth":2,"children":[]},{"title":"Safety","slug":"safety","depth":2,"children":[]},{"title":"Example Workflow","slug":"example-workflow","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"oxenai","siteName":"Oxen.ai","title":"๐งน Maintenance - Oxen.ai","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-06-01T03:59:51.597Z","originalFileLocation":"getting-started/command-line/maintenance.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=\"Reclaim disk space by removing unreferenced data from your repository.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Oxen.ai\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/oxenai/qjH8p5zfmK1DS0SK/_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/oxenai/qjH8p5zfmK1DS0SK/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/oxenai/qjH8p5zfmK1DS0SK/_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/oxenai/qjH8p5zfmK1DS0SK/_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/oxenai/qjH8p5zfmK1DS0SK/_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/oxenai/qjH8p5zfmK1DS0SK/_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/oxenai/qjH8p5zfmK1DS0SK/_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/oxenai/qjH8p5zfmK1DS0SK/_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/oxenai/qjH8p5zfmK1DS0SK/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"๐งน Maintenance - Oxen.ai\">\u003cmeta data-mint-head property=\"og:description\" content=\"Reclaim disk space by removing unreferenced data from your repository.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Oxen.ai\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.oxen.ai/getting-started/command-line/maintenance\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://oxenai.mintlify.site/_mintlify/api/og/v2?division=%F0%9F%92%BB+Command+Line+Interface\u0026amp;title=%F0%9F%A7%B9+Maintenance\u0026amp;description=Reclaim+disk+space+by+removing+unreferenced+data+from+your+repository.\u0026amp;theme=2ca74976db5b09469ea3b450\u0026amp;signature=1f11c327464fd9ece1eb72cd4f5f07e0af13cada5a26d9a2cf3243c1df24e95c\">\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=\"๐งน Maintenance - Oxen.ai\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Reclaim disk space by removing unreferenced data from your repository.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://oxenai.mintlify.site/_mintlify/api/og/v2?division=%F0%9F%92%BB+Command+Line+Interface\u0026amp;title=%F0%9F%A7%B9+Maintenance\u0026amp;description=Reclaim+disk+space+by+removing+unreferenced+data+from+your+repository.\u0026amp;theme=2ca74976db5b09469ea3b450\u0026amp;signature=1f11c327464fd9ece1eb72cd4f5f07e0af13cada5a26d9a2cf3243c1df24e95c\">\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/oxenai/qjH8p5zfmK1DS0SK/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Oxen.ai\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0E87CB\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.oxen.ai/getting-started/command-line/maintenance\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/getting-started/command-line/maintenance.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.oxen.ai/#organization\",\"name\":\"Oxen.ai\",\"url\":\"https://docs.oxen.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/oxenai/VndlMSXTb9YuU-Wl/logo/light.svg?fit=max\u0026auto=format\u0026n=VndlMSXTb9YuU-Wl\u0026q=85\u0026s=c1e0ff00ab0a8de0a5dca3f7cd146763\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.oxen.ai#website\",\"name\":\"Oxen.ai\",\"url\":\"https://docs.oxen.ai\",\"publisher\":{\"@id\":\"https://docs.oxen.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.oxen.ai/getting-started/command-line/maintenance#webpage\",\"url\":\"https://docs.oxen.ai/getting-started/command-line/maintenance\",\"name\":\"๐งน Maintenance\",\"description\":\"Reclaim disk space by removing unreferenced data from your repository.\",\"dateModified\":\"2026-06-01T03:59:51.597Z\",\"isPartOf\":{\"@id\":\"https://docs.oxen.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.oxen.ai/getting-started/command-line/maintenance#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.oxen.ai/getting-started/command-line/maintenance#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Developer Tools\",\"item\":\"https://docs.oxen.ai/getting-started/install\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"๐ป Command Line Interface\",\"item\":\"https://docs.oxen.ai/getting-started/command-line/setup\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"๐งน Maintenance\",\"item\":\"https://docs.oxen.ai/getting-started/command-line/maintenance\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.oxen.ai/getting-started/command-line/maintenance#article\",\"headline\":\"๐งน Maintenance\",\"name\":\"๐งน Maintenance\",\"description\":\"Reclaim disk space by removing unreferenced data from your repository.\",\"url\":\"https://docs.oxen.ai/getting-started/command-line/maintenance\",\"mainEntityOfPage\":{\"@id\":\"https://docs.oxen.ai/getting-started/command-line/maintenance#webpage\"},\"dateModified\":\"2026-06-01T03:59:51.597Z\",\"publisher\":{\"@id\":\"https://docs.oxen.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.oxen.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Oxen.ai\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Oxen.ai\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/getting-started/command-line/maintenance.md","siteName":"Oxen.ai","nav":{"global":{"anchors":[{"anchor":"Documentation","icon":"book-open-cover","href":"https://docs.oxen.ai"},{"anchor":"Blog","icon":"newspaper","href":"https://blog.oxen.ai"},{"anchor":"GitHub","icon":"github","href":"https://github.com/Oxen-AI/Oxen"}]},"tabs":[{"tab":"Documentation","groups":[{"group":"Get Started","pages":[{"title":"๐ Oxen.ai","href":"/getting-started/intro"},{"group":"โก๏ธ Models","pages":[{"title":"Using Models on Oxen.ai","sidebarTitle":"๐ Overview","href":"/getting-started/inference"},{"title":"๐ฌ Language Models","href":"/examples/inference/chat_completions"},{"title":"๐๏ธ Vision Language Models","href":"/examples/inference/vision_language_models"},{"title":"๐ผ๏ธ Image Generation","href":"/examples/inference/image_generation"},{"title":"๐จ Image Editing","href":"/examples/inference/image_editing"},{"title":"๐ฅ Video Generation","href":"/examples/inference/video_generation"}]},{"group":"๐ข๏ธ Data","pages":[{"title":"Repositories on Oxen.ai","sidebarTitle":"๐ Overview","href":"/getting-started/data"},{"title":"๐พ Version Control","href":"/examples/data/versioning"},{"title":"๐ Datasets","href":"/examples/data/datasets"},{"title":"๐ฆ Workspaces","href":"/examples/data/workspaces"},{"title":"๐ฅ Performance","href":"/examples/data/performance"},{"title":"โ๏ธ Dataset Diffs","href":"/concepts/diffs"},{"title":"๐ท๏ธ File Metadata","href":"/concepts/file_metadata"}]},{"group":"๐ ๏ธ Fine-Tuning","pages":[{"title":"Fine-Tuning Models on Oxen.ai","sidebarTitle":"๐ Overview","href":"/getting-started/fine-tuning"},{"title":"๐ฌ Text Generation","href":"/examples/fine-tuning/text_generation"},{"title":"๐ค Chat Completions","href":"/examples/fine-tuning/chat_completions"},{"title":"๐๏ธ Vision Language Models","href":"/examples/fine-tuning/image_understanding"},{"title":"๐ผ๏ธ Image Generation","href":"/examples/fine-tuning/image_generation"},{"title":"๐จโ๐จ Image Editing","href":"/examples/fine-tuning/image_editing"},{"title":"๐ฅ Video Generation","href":"/examples/fine-tuning/video_generation"}]}]},{"group":"Developer Tools","pages":[{"title":"โ๏ธ Installation","href":"/getting-started/install"},{"group":"๐ป Command Line Interface","pages":[{"title":"โ๏ธ Setup \u0026 Authentication","href":"/getting-started/command-line/setup"},{"title":"๐ Start a Repository","href":"/getting-started/command-line/start_repository"},{"title":"๐ Track Changes","href":"/getting-started/command-line/track_changes"},{"title":"๐ฟ Branches \u0026 Merging","href":"/getting-started/command-line/branches"},{"title":"๐ Sync with a Remote","href":"/getting-started/command-line/sync_remote"},{"title":"๐๏ธ Workspaces","description":"Stage and commit changes directly against a remote without a full local clone.","href":"/getting-started/command-line/workspaces"},{"title":"๐งน Maintenance","href":"/getting-started/command-line/maintenance"},{"title":"๐ง Debugging \u0026 Performance","description":"Diagnose repository state and tune Oxen for your hardware and network.","href":"/getting-started/command-line/debugging"}]},{"group":"๐ Python","pages":[{"title":"Introduction","href":"/python-api/index"},{"title":null,"href":"/python-api/clone"},{"title":null,"href":"/python-api/data_frame"},{"title":null,"href":"/python-api/datasets"},{"title":null,"href":"/python-api/df_utils"},{"title":null,"href":"/python-api/diff/diff"},{"title":null,"href":"/python-api/diff/line_diff"},{"title":null,"href":"/python-api/diff/tabular_diff"},{"title":null,"href":"/python-api/diff/text_diff"},{"title":null,"href":"/python-api/init"},{"title":null,"href":"/python-api/oxen_fs"},{"title":null,"href":"/python-api/remote_repo"},{"title":null,"href":"/python-api/repo"},{"title":"Repositories","href":"/python-api/repositories"},{"title":null,"href":"/python-api/workspace"}]},{"title":"๐ก Oxen Server","href":"/getting-started/oxen-server"}]}]},{"tab":"Inference API","pages":[{"title":"Inference API","href":"/inference-api/overview"}]},{"tab":"Repository API","pages":[{"title":"Repository API","href":"/http-api"}]},{"tab":"Fine-Tuning API","pages":[{"title":"Fine-Tuning API","href":"/fine-tuning-api/overview"}]}]},"basePath":"","title":"๐งน Maintenance - Oxen.ai","deploymentId":"dpl_6UE2cqB47X6P7P3F2hD3UphW6ijc","buildId":"dpl_6UE2cqB47X6P7P3F2hD3UphW6ijc","dynamics":[],"chunks":[]}