TheDocumentation Index
Fetch the complete documentation index at: https://docs.oxen.ai/llms.txt
Use this file to discover all available pages before exploring further.
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:Dry Run Mode
Before actually removing files, you can preview what would be deleted using the--dry-run flag:
Understanding Prune Statistics
After runningoxen prune, you’ll see detailed statistics about the operation:
-
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 runningoxen 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
.oxendirectory 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
.oxendirectory structure itself