Skip to content

Conversation

@MickLesk
Copy link
Member

✍️ Description

Removed the cache clean command for uv.
UV uses aggresive cache methods, so it can be only cleared with --force, thats in my opinion to unsafe for productive usage:

Example:
root@paperless-ngx:~# uv cache prune
Cache is currently in-use, waiting for other uv processes to finish (use --force to override)

Example with force:
root@paperless-ngx:~# uv cache clean --force
Clearing cache at: .cache/uv
Removed 118567 files (1.4GiB)

🔗 Related PR / Issue

Link: #9411

✅ Prerequisites (X in brackets)

  • Self-review completed – Code follows project standards.
  • Tested thoroughly – Changes work as expected.
  • No security risks – No hardcoded secrets, unnecessary privilege escalations, or permission issues.

🛠️ Type of Change (X in brackets)

  • 🐞 Bug fix – Resolves an issue without breaking functionality.
  • New feature – Adds new, non-breaking functionality.
  • 💥 Breaking change – Alters existing functionality in a way that may require updates.
  • 🆕 New script – A fully functional and tested script or script set.
  • 🌍 Website update – Changes to website-related JSON files or metadata.
  • 🔧 Refactoring / Code Cleanup – Improves readability or maintainability without changing functionality.
  • 📝 Documentation update – Changes to README, AppName.md, CONTRIBUTING.md, or other docs.

Removed the cache clean command for Python uv.
UV uses aggresive cache method, so it can be only cleared with --force, thats in my opinion to unsafe:

Example: 
root@paperless-ngx:~# uv cache prune
Cache is currently in-use, waiting for other uv processes to finish (use `--force` to override)

Example with force:
root@paperless-ngx:~# uv cache clean --force
Clearing cache at: .cache/uv
Removed 118567 files (1.4GiB)
@michelroegl-brunner michelroegl-brunner merged commit bb40a3f into main Nov 24, 2025
1 check passed
@MickLesk MickLesk deleted the MickLesk-patch-5 branch November 25, 2025 12:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix core update script A change that updates a script

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants