Commit 4e11911

Eric Bower  ·  2026-05-10 21:22:24 -0400 EDT
parent 07d445f
docs: runbooks
1 files changed,  +21, -0
+21, -0
......@@ -0,0 +1,21 @@
1+# How to delete user with all data
2+
3+Log into production db, then drop into psql
4+
5+```bash
6+cd pico
7+make psql
8+```
9+
10+```sql
11+delete from app_users where name = 'xxx';
12+```
13+
14+This only removes data from the database, we also have static assets (prose images, pgs assets).
15+
16+We have a clean bucket script for prose and pgs that we run periodically to remove static assets from orphaned buckets.
17+
18+```bash
19+make scripts
20+FS_STORAGE_DIR="./data/storage" go run ./cmd/scripts/clean-buckets
21+```