Deleting shapes #4111
-
|
The API offers an endpoint to delete shapes, but is it possible to delete shapes via the file-system directly e.g. when manually cleaning up old shapes? As far as I can tell Electric uses three folders for storing data: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Don't hand-edit the storage dirs while Electric is running — its LSM-style state in |
Beta Was this translation helpful? Give feedback.
Don't hand-edit the storage dirs while Electric is running — its LSM-style state in
state/and the shape metadata inmeta/must stay consistent or clients see phantom shapes. Safe path: stop Electric, remove the shape subdir undershapes/<shape_id>/, then the corresponding entry inmeta/shapes.db(or wipemeta/entirely if you don't mind re-syncing all clients). The DELETE API is idempotent and costs very little — scripting it over stale shapes is usually cleaner than filesystem surgery.