Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Document storage cleanup timeline for self-hosted instances

Neeraj Guptadd5085b2130a
diff --git a/docs/docs/self-hosting/troubleshooting/misc.md b/docs/docs/self-hosting/troubleshooting/misc.md
index da901c04c8..607fb35ac7 100644
--- a/docs/docs/self-hosting/troubleshooting/misc.md
+++ b/docs/docs/self-hosting/troubleshooting/misc.md
@@ -35,3 +35,28 @@ corresponding function.
This is not guaranteed, each browsers handles CSP errors differently, and some
may silently swallow it.
+
+## Storage not freed after deleting files
+
+Deleted files don't immediately free up S3/MinIO storage:
+
+1. **Trash retention**: 30 days
+2. **Deletion queue**: Additional 45 days after permanent deletion
+3. **Total**: Up to 75 days before storage is freed
+
+To speed this up:
+
+1. **Empty trash** from the app to skip the 30-day wait
+2. **Expedite the deletion queue** via SQL:
+
+ ```sql
+ -- Check pending deletions
+ SELECT COUNT(*) FROM queue WHERE queue_name = 'deleteObject';
+
+ -- Make items ready for processing (bypasses 45-day safety buffer)
+ UPDATE queue
+ SET created_at = now_utc_micro_seconds() - (46 * 24 * 60 * 60 * 1000000)
+ WHERE queue_name = 'deleteObject';
+ ```
+
+The cleanup cron runs every few minutes and will process these items.